|
|
@@ -5,43 +5,46 @@
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
<include layout="@layout/layout_global_toolbar" />
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
- android:scrollbars="none"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="?colorSurfaceContainerHigh"
|
|
|
+ android:scrollbars="none">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:background="@drawable/item_background_single_corner"
|
|
|
+ android:backgroundTint="@color/md_theme_surface"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_marginTop="10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="5dp"
|
|
|
android:layout_marginEnd="5dp"
|
|
|
- android:background="@drawable/item_background_single_corner"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="60dp"
|
|
|
+ android:layout_height="50dp"
|
|
|
android:background="?selectableItemBackground"
|
|
|
android:onClick="onMessageConfigClicked">
|
|
|
|
|
|
<TextView
|
|
|
- android:drawablePadding="10dp"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginStart="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:text="@string/label_setting_notify"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
android:textSize="16sp"
|
|
|
@@ -57,8 +60,7 @@
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@drawable/item_background_single_corner">
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
@@ -86,10 +88,10 @@
|
|
|
android:layout_marginStart="10dp"
|
|
|
android:layout_marginEnd="10dp"
|
|
|
android:layout_marginBottom="10dp"
|
|
|
- android:textSize="14sp"
|
|
|
+ android:alpha="0.75"
|
|
|
android:text="@string/hint_persist_notification"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
- android:alpha="0.75" />
|
|
|
+ android:textSize="14sp" />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
|
@@ -116,42 +118,40 @@
|
|
|
android:layout_marginEnd="5dp" />
|
|
|
|
|
|
<TextView
|
|
|
- android:layout_below="@id/switch_window"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:textSize="14sp"
|
|
|
+ android:layout_below="@id/switch_window"
|
|
|
android:layout_marginStart="10dp"
|
|
|
android:layout_marginEnd="10dp"
|
|
|
android:layout_marginBottom="10dp"
|
|
|
+ android:alpha="0.75"
|
|
|
android:text="@string/hint_setting_float_window"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
- android:alpha="0.75" />
|
|
|
+ android:textSize="14sp" />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_marginTop="10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="5dp"
|
|
|
android:layout_marginEnd="5dp"
|
|
|
- android:background="@drawable/item_background_single_corner"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:backgroundTint="@color/md_theme_surface"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="60dp"
|
|
|
- android:background="?selectableItemBackground"
|
|
|
+ android:layout_height="50dp"
|
|
|
android:onClick="onThemeModeClicked">
|
|
|
|
|
|
<TextView
|
|
|
- android:drawablePadding="10dp"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginStart="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:text="@string/label_setting_day_night_mode"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
android:textSize="16sp"
|
|
|
@@ -176,11 +176,11 @@
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
|
- android:visibility="gone"
|
|
|
android:id="@+id/item_dynamic_color"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:background="@drawable/item_background_single_corner">
|
|
|
+ android:visibility="gone"
|
|
|
+ tools:visibility="visible">
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
@@ -210,25 +210,21 @@
|
|
|
android:layout_marginTop="10dp"
|
|
|
android:layout_marginEnd="10dp"
|
|
|
android:layout_marginBottom="10dp"
|
|
|
- android:textSize="14sp"
|
|
|
+ android:alpha="0.75"
|
|
|
android:text="@string/hint_dynamic_color_mode"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
- android:alpha="0.75" />
|
|
|
+ android:textSize="14sp" />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
android:layout_marginStart="5dp"
|
|
|
android:layout_marginEnd="5dp"
|
|
|
- android:background="@drawable/item_background_single_corner"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<RelativeLayout
|
|
|
@@ -238,11 +234,11 @@
|
|
|
android:onClick="onKeepLiveClicked">
|
|
|
|
|
|
<TextView
|
|
|
- android:drawablePadding="10dp"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:text="@string/label_setting_keeplive"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
android:textSize="16sp"
|
|
|
@@ -262,34 +258,32 @@
|
|
|
android:layout_marginStart="10dp"
|
|
|
android:layout_marginEnd="10dp"
|
|
|
android:layout_marginBottom="10dp"
|
|
|
+ android:alpha="0.75"
|
|
|
android:text="@string/hint_persist_keep_live"
|
|
|
- android:textSize="14sp"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
- android:alpha="0.75" />
|
|
|
+ android:textSize="14sp" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_marginTop="10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="5dp"
|
|
|
android:layout_marginEnd="5dp"
|
|
|
android:layout_marginBottom="20dp"
|
|
|
- android:background="@drawable/item_background_single_corner"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:background="?android:selectableItemBackground"
|
|
|
- android:layout_height="60dp"
|
|
|
+ android:layout_height="50dp"
|
|
|
android:onClick="onLanguageClicked">
|
|
|
|
|
|
<TextView
|
|
|
- android:drawablePadding="10dp"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginStart="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:text="@string/label_setting_language"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
android:textSize="16sp"
|
|
|
@@ -306,25 +300,24 @@
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/language_icon"
|
|
|
- android:layout_marginEnd="5dp"
|
|
|
- android:layout_toStartOf="@id/language_arrow"
|
|
|
android:layout_width="24dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
+ android:layout_toStartOf="@id/language_arrow"
|
|
|
app:srcCompat="@drawable/icon_country_china" />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:background="?android:selectableItemBackground"
|
|
|
- android:layout_height="60dp"
|
|
|
+ android:layout_height="50dp"
|
|
|
android:onClick="onAccountSyncClicked">
|
|
|
|
|
|
<TextView
|
|
|
- android:drawablePadding="10dp"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginStart="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:text="@string/label_setting_sync_data"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
android:textSize="16sp"
|
|
|
@@ -340,20 +333,19 @@
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="60dp"
|
|
|
- android:background="?android:selectableItemBackground"
|
|
|
+ android:layout_height="50dp"
|
|
|
android:onClick="onAboutClicked">
|
|
|
|
|
|
<TextView
|
|
|
- app:drawableStartCompat="@drawable/icon_menu_about"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:drawablePadding="10dp"
|
|
|
android:layout_marginStart="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:text="@string/label_setting_about"
|
|
|
android:textColor="?colorOnSurfaceVariant"
|
|
|
- android:textSize="16sp" />
|
|
|
+ android:textSize="16sp"
|
|
|
+ app:drawableStartCompat="@drawable/icon_menu_about" />
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="wrap_content"
|
|
|
@@ -366,8 +358,7 @@
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="60dp"
|
|
|
- android:background="?android:selectableItemBackground"
|
|
|
+ android:layout_height="50dp"
|
|
|
android:onClick="onCloseAppClicked">
|
|
|
|
|
|
<TextView
|