|
@@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
|
- android:id="@+id/save"
|
|
|
+ android:id="@+id/save_and_start_master_app"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_alignParentEnd="true"
|
|
@@ -32,6 +32,16 @@
|
|
|
android:drawableStart="@drawable/ic_save"
|
|
|
android:text="保存并启动主应用" />
|
|
|
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/save"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
+ android:layout_toStartOf="@id/save_and_start_master_app"
|
|
|
+ android:drawableStart="@drawable/ic_save"
|
|
|
+ android:text="保存" />
|
|
|
+
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
@@ -151,40 +161,6 @@
|
|
|
android:text="文件管理" />
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
-
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
-
|
|
|
-
|
|
|
- <androidx.appcompat.widget.SwitchCompat
|
|
|
- android:id="@+id/status_switch"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
- android:text="状态栏"
|
|
|
- app:switchPadding="10dp" />
|
|
|
-
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.SwitchCompat
|
|
|
- android:id="@+id/nav_switch"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
- android:text="导航栏"
|
|
|
- app:switchPadding="10dp" />
|
|
|
-
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
<androidx.cardview.widget.CardView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="50dp"
|
|
@@ -249,8 +225,155 @@
|
|
|
android:text="内存" />
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_margin="5dp">
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.SwitchCompat
|
|
|
+ android:id="@+id/status_switch"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:text="状态栏"
|
|
|
+ app:switchPadding="10dp" />
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_margin="5dp">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.SwitchCompat
|
|
|
+ android:id="@+id/nav_switch"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:text="导航栏"
|
|
|
+ app:switchPadding="10dp" />
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="5dp">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.SwitchCompat
|
|
|
+ android:id="@+id/auto_master_switch"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:text="自动唤醒主应用"
|
|
|
+ app:switchPadding="10dp" />
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="5dp">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.SwitchCompat
|
|
|
+ android:id="@+id/auto_update_switch"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:text="自动更新"
|
|
|
+ app:switchPadding="10dp" />
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
</com.google.android.flexbox.FlexboxLayout>
|
|
|
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="15dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="5dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Http服务配置"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:background="@drawable/shape_rect"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/http_uri_ET"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:clickable="false"
|
|
|
+ android:drawableStart="@drawable/ic_http"
|
|
|
+ android:drawablePadding="20dp"
|
|
|
+ android:gravity="start"
|
|
|
+ android:hint="http://192.168.1.8/api/"
|
|
|
+ android:paddingEnd="20dp"
|
|
|
+ android:text="" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/http_uri_test_BT"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="测试地址" />
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/http_uri_xn_BT"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="西农地址" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="管理员密码"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:background="@drawable/shape_rect"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/old_password_ET"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:drawableStart="@drawable/ic_mqtt_password"
|
|
|
+ android:drawablePadding="20dp"
|
|
|
+ android:hint="密码"
|
|
|
+ android:maxLength="11"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingEnd="20dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|