parent
cb7743acbe
commit
32996df95a
19 changed files with 418 additions and 243 deletions
@ -0,0 +1,12 @@ |
|||||||
|
package com.project.survey.model |
||||||
|
|
||||||
|
import androidx.annotation.Keep |
||||||
|
|
||||||
|
@Keep |
||||||
|
data class FirstControlNetworkVersionBean( |
||||||
|
val KZWZBCG_VERSION: String |
||||||
|
){ |
||||||
|
override fun toString(): String { |
||||||
|
return KZWZBCG_VERSION |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
package com.project.survey.model |
||||||
|
|
||||||
|
import androidx.annotation.Keep |
||||||
|
|
||||||
|
@Keep |
||||||
|
data class SpecialControlNetworkVersionBean( |
||||||
|
val version_array: String |
||||||
|
) { |
||||||
|
override fun toString(): String { |
||||||
|
return version_array |
||||||
|
} |
||||||
|
} |
@ -1,88 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
||||||
xmlns:tools="http://schemas.android.com/tools" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" |
|
||||||
android:orientation="vertical"> |
|
||||||
|
|
||||||
<!-- <include--> |
|
||||||
<!-- android:id="@+id/ilToolBar"--> |
|
||||||
<!-- layout="@layout/sh_toolbar" />--> |
|
||||||
|
|
||||||
<com.google.android.material.appbar.MaterialToolbar |
|
||||||
android:id="@+id/toolbar" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="?actionBarSize" |
|
||||||
android:background="@color/transparent" |
|
||||||
app:navigationIcon="@drawable/icon_toolbar_back" |
|
||||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" |
|
||||||
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
|
||||||
app:titleCentered="true" |
|
||||||
app:titleTextAppearance="@style/ToolbarTextAppearance" /> |
|
||||||
|
|
||||||
<!-- <include--> |
|
||||||
<!-- android:id="@+id/ilSearch"--> |
|
||||||
<!-- layout="@layout/item_search_control_net" />--> |
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:gravity="center_vertical" |
|
||||||
android:orientation="horizontal"> |
|
||||||
|
|
||||||
<FrameLayout |
|
||||||
android:id="@+id/llSpinner" |
|
||||||
android:layout_width="@dimen/sw_103dp" |
|
||||||
android:layout_height="@dimen/sw_30dp" |
|
||||||
android:layout_marginStart="@dimen/sw_16dp" |
|
||||||
android:layout_marginTop="@dimen/sw_7dp" |
|
||||||
android:background="@drawable/bg_search" |
|
||||||
app:layout_constraintEnd_toStartOf="@id/searchWidget" |
|
||||||
app:layout_constraintHorizontal_weight="1" |
|
||||||
app:layout_constraintStart_toStartOf="parent" |
|
||||||
app:layout_constraintTop_toTopOf="parent"> |
|
||||||
|
|
||||||
<com.project.survey.widget.materialspinner.MaterialSpinner |
|
||||||
android:id="@+id/spinner" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" |
|
||||||
android:textColor="@color/text_color_20" |
|
||||||
android:textSize="@dimen/sw_11sp" /> |
|
||||||
|
|
||||||
</FrameLayout> |
|
||||||
|
|
||||||
<View |
|
||||||
android:layout_width="0dp" |
|
||||||
android:layout_height="@dimen/sw_2dp" |
|
||||||
android:background="@drawable/bg_search_shadow_2" |
|
||||||
app:layout_constraintBottom_toBottomOf="parent" |
|
||||||
app:layout_constraintEnd_toEndOf="@id/llSpinner" |
|
||||||
app:layout_constraintStart_toStartOf="parent" /> |
|
||||||
|
|
||||||
<com.project.survey.widget.SearchWidget |
|
||||||
android:id="@+id/searchWidget" |
|
||||||
android:layout_width="0dp" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
app:layout_constraintEnd_toEndOf="parent" |
|
||||||
app:layout_constraintHorizontal_weight="1" |
|
||||||
app:layout_constraintStart_toEndOf="@id/llSpinner" |
|
||||||
app:layout_constraintTop_toTopOf="parent" |
|
||||||
app:sw_hint="请输入控制网名称" /> |
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout> |
|
||||||
|
|
||||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout |
|
||||||
android:id="@+id/smartRefreshLayout" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent"> |
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView |
|
||||||
android:id="@+id/recyclerView" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" |
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
|
||||||
tools:itemCount="2" |
|
||||||
tools:listitem="@layout/item_control_net_first" /> |
|
||||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout> |
|
||||||
|
|
||||||
</LinearLayout> |
|
@ -0,0 +1,84 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:orientation="vertical"> |
||||||
|
|
||||||
|
<!-- <include--> |
||||||
|
<!-- android:id="@+id/ilToolBar"--> |
||||||
|
<!-- layout="@layout/sh_toolbar" />--> |
||||||
|
|
||||||
|
<com.google.android.material.appbar.MaterialToolbar |
||||||
|
android:id="@+id/toolbar" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="?actionBarSize" |
||||||
|
android:background="@color/transparent" |
||||||
|
app:navigationIcon="@drawable/icon_toolbar_back" |
||||||
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" |
||||||
|
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
||||||
|
app:titleCentered="true" |
||||||
|
app:titleTextAppearance="@style/ToolbarTextAppearance" /> |
||||||
|
|
||||||
|
<!-- <include--> |
||||||
|
<!-- android:id="@+id/ilSearch"--> |
||||||
|
<!-- layout="@layout/item_search_control_net" />--> |
||||||
|
|
||||||
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout--> |
||||||
|
<!-- android:layout_width="match_parent"--> |
||||||
|
<!-- android:layout_height="wrap_content"--> |
||||||
|
<!-- android:gravity="center_vertical"--> |
||||||
|
<!-- android:orientation="horizontal">--> |
||||||
|
|
||||||
|
<FrameLayout |
||||||
|
android:id="@+id/llSpinner" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="@dimen/sw_30dp" |
||||||
|
android:layout_marginHorizontal="@dimen/sw_16dp" |
||||||
|
android:layout_marginTop="@dimen/sw_7dp" |
||||||
|
android:background="@drawable/bg_search"> |
||||||
|
|
||||||
|
<com.project.survey.widget.materialspinner.MaterialSpinner |
||||||
|
android:id="@+id/spinner" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:textColor="@color/text_color_20" |
||||||
|
android:textSize="@dimen/sw_11sp" /> |
||||||
|
|
||||||
|
</FrameLayout> |
||||||
|
|
||||||
|
<!-- <View--> |
||||||
|
<!-- android:layout_width="0dp"--> |
||||||
|
<!-- android:layout_height="@dimen/sw_2dp"--> |
||||||
|
<!-- android:background="@drawable/bg_search_shadow_2"--> |
||||||
|
<!-- app:layout_constraintBottom_toBottomOf="parent"--> |
||||||
|
<!-- app:layout_constraintEnd_toEndOf="@id/llSpinner"--> |
||||||
|
<!-- app:layout_constraintStart_toStartOf="parent" />--> |
||||||
|
|
||||||
|
<!-- <com.project.survey.widget.SearchWidget--> |
||||||
|
<!-- android:id="@+id/searchWidget"--> |
||||||
|
<!-- android:layout_width="0dp"--> |
||||||
|
<!-- android:layout_height="wrap_content"--> |
||||||
|
<!-- app:layout_constraintEnd_toEndOf="parent"--> |
||||||
|
<!-- app:layout_constraintHorizontal_weight="1"--> |
||||||
|
<!-- app:layout_constraintStart_toEndOf="@id/llSpinner"--> |
||||||
|
<!-- app:layout_constraintTop_toTopOf="parent"--> |
||||||
|
<!-- app:sw_hint="请输入控制网名称" />--> |
||||||
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>--> |
||||||
|
|
||||||
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout |
||||||
|
android:id="@+id/smartRefreshLayout" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent"> |
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView |
||||||
|
android:id="@+id/recyclerView" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
||||||
|
tools:itemCount="2" |
||||||
|
tools:listitem="@layout/item_control_net_first" /> |
||||||
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout> |
||||||
|
|
||||||
|
</LinearLayout> |
Loading…
Reference in new issue