400 lines
13 KiB
XML
400 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
tools:context=".liveVideo.SettingsActivity">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/topBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:gravity="center_vertical"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivBack"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/back" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/settings_title"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp"
|
|
android:textStyle="bold" />
|
|
|
|
<View
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dp"
|
|
android:background="@color/face" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="12dp"
|
|
android:text="@string/function_settings"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemVoiceSetting"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/voice_settings"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemWaterGunSetting"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/water_gun_settings"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemRecognitionMode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/recognition_mode"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tvRecognitionMode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mode_standard"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemAutoMode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/detection_settings"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mode_standard"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dp"
|
|
android:background="@color/face" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="12dp"
|
|
android:text="@string/basic_settings"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemDeviceName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/device_name"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tvDeviceName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/device_name"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemDeviceInfo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/device_info"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemRelatedUsers"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/linked_user"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="3"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemWifiManage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/wiFi_management"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/wifi"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemUnbindDevice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/unbind_device"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/right_back" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@color/face" />
|
|
|
|
|
|
|
|
</LinearLayout> |