|
|
@@ -38,202 +38,220 @@
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fillViewport="true">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingBottom="18dp"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
-
|
|
|
- <com.google.android.flexbox.FlexboxLayout
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_margin="10dp"
|
|
|
- app:flexDirection="row"
|
|
|
- app:flexWrap="wrap">
|
|
|
+ android:layout_marginHorizontal="15dp">
|
|
|
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="10dp">
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatButton
|
|
|
- android:id="@+id/var_BT"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_ver"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:paddingVertical="5dp"
|
|
|
- android:text="版本:1.10" />
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatButton
|
|
|
- android:id="@+id/sn_BT"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_sn"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:paddingVertical="5dp"
|
|
|
- android:text="SN:" />
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatButton
|
|
|
- android:id="@+id/ip_BT"
|
|
|
+ <TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_ip"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:text="127.0.0.1" />
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatButton
|
|
|
- android:id="@+id/reboot_BT"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:text="终端状态与快捷操作"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_reboot"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:paddingVertical="5dp"
|
|
|
- android:text="重启设备" />
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:id="@+id/root_CV"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp"
|
|
|
- android:visibility="gone">
|
|
|
-
|
|
|
- <androidx.appcompat.widget.AppCompatButton
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/var_BT"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
+ android:drawableStart="@drawable/ic_ver"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="版本:1.10" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/sn_BT"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:drawableStart="@drawable/ic_sn"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="SN:" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_admin"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- 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.AppCompatButton
|
|
|
- android:id="@+id/file_browser_BT"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/ip_BT"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
+ android:drawableStart="@drawable/ic_ip"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="127.0.0.1" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/reboot_BT"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:drawableStart="@drawable/ic_reboot"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="重启设备" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:id="@+id/root_CV"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_folder"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- 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.AppCompatButton
|
|
|
- android:id="@+id/setting_BT"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:drawableStart="@drawable/ic_admin"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="已获取超级权限" />
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginHorizontal="10dp"
|
|
|
- android:drawableStart="@drawable/ic_settings"
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:text="系统设置" />
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_margin="5dp">
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/file_browser_BT"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
+ android:drawableStart="@drawable/ic_folder"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="文件管理" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatButton
|
|
|
+ android:id="@+id/setting_BT"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:drawableStart="@drawable/ic_settings"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:text="系统设置" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="15dp"
|
|
|
+ android:layout_marginTop="10dp">
|
|
|
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="10dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="系统参数"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
android:id="@+id/bar_switch"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:paddingHorizontal="4dp"
|
|
|
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">
|
|
|
-
|
|
|
-
|
|
|
<RadioGroup
|
|
|
android:id="@+id/camera_RG"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingHorizontal="10dp">
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<RadioButton
|
|
|
android:id="@+id/front_RB"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
android:text="前置相机" />
|
|
|
|
|
|
<RadioButton
|
|
|
android:id="@+id/back_RB"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_weight="1"
|
|
|
android:checked="true"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
android:text="后置相机" />
|
|
|
</RadioGroup>
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
-
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- </com.google.android.flexbox.FlexboxLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginHorizontal="15dp">
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
- android:paddingVertical="5dp">
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="10dp">
|
|
|
|
|
|
<TextView
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:text="Http服务配置"
|
|
|
@@ -241,7 +259,7 @@
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="45dp"
|
|
|
android:layout_marginTop="5dp"
|
|
|
android:background="@drawable/shape_rect"
|
|
|
@@ -249,8 +267,9 @@
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatEditText
|
|
|
android:id="@+id/http_uri_ET"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:clickable="false"
|
|
|
android:drawableStart="@drawable/ic_http"
|
|
|
android:drawablePadding="20dp"
|
|
|
@@ -274,8 +293,6 @@
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="10dp"
|
|
|
@@ -311,8 +328,6 @@
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<TextView
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:text="蓝牙称配置"
|
|
|
@@ -320,12 +335,13 @@
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
<TextView
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
android:id="@+id/ble_name_TV"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
android:layout_marginStart="20dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:maxLines="1"
|
|
|
android:textColor="@color/colorAccent" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
@@ -370,8 +386,8 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
- android:paddingVertical="5dp">
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="10dp">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
@@ -482,4 +498,4 @@
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
-</LinearLayout>
|
|
|
+</LinearLayout>
|