HapeLee 11 месяцев назад
Родитель
Сommit
f4067dabc1

+ 28 - 19
app/src/main/res/layout/view_preference_tip.xml

@@ -1,24 +1,33 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:gravity="center_vertical"
-    android:orientation="vertical"
-    android:paddingHorizontal="16dp"
-    android:paddingBottom="8dp">
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    app:cardBackgroundColor="?attr/colorSurfaceContainer"
+    app:strokeWidth="0dp"
+    android:layout_marginHorizontal="16dp"
+    android:layout_marginVertical="8dp">
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:gravity="center_vertical"
+        android:orientation="vertical"
+        android:paddingHorizontal="12dp"
+        android:paddingVertical="12dp">
 
-    <ImageView
-        android:layout_width="24dp"
-        android:layout_height="24dp"
-        android:layout_marginEnd="8dp"
-        android:layout_marginBottom="8dp"
-        android:src="@drawable/ic_cfg_about" />
+        <ImageView
+            android:layout_width="24dp"
+            android:layout_height="24dp"
+            android:layout_marginBottom="8dp"
+            android:src="@drawable/ic_cfg_about" />
+
+        <TextView
+            android:id="@+id/tip_text"
+            android:layout_width="match_parent"
+            android:layout_height="0dp"
+            android:layout_weight="1"
+            android:text="@string/about"
+            android:textSize="12sp" />
+    </LinearLayout>
+</com.google.android.material.card.MaterialCardView>
 
-    <TextView
-        android:id="@+id/tip_text"
-        android:layout_width="match_parent"
-        android:layout_height="0dp"
-        android:layout_weight="1"
-        android:text="@string/about"
-        android:textSize="12sp" />
-</LinearLayout>

+ 1 - 1
app/src/main/res/values-zh/strings.xml

@@ -1296,7 +1296,7 @@
     <string name="seed_photo_summary">使用图片生成主题颜色</string>
     <string name="seed_photo_alart">若需使用种子颜色,请取消种子图片选择</string>
     <string name="click_to_delete">点击以删除或更改</string>
-    <string name="tip_custom_mode">切换至自定义主题或调整自定义设置时,部分选项需要重启。</string>
+    <string name="tip_custom_mode">由于主题引擎依赖Monet,对于低于Android12的设备,动态取色与自定义主题不会生效。</string>
     <string name="restart_required_message">此更改需要重启应用才能生效,是否立即重启?</string>
     <string name="restart_later_message">更改将在下次启动应用时生效</string>
     <string name="search_select_group">选择书源分组</string>

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -1297,7 +1297,7 @@
     <string name="seed_photo_summary">使用图片生成主题颜色</string>
     <string name="seed_photo_alart">若需使用种子颜色,请取消种子图片选择</string>
     <string name="click_to_delete">Click to delete or change</string>
-    <string name="tip_custom_mode">切换至自定义主题或调整自定义设置时,部分选项需要重启。</string>
+    <string name="tip_custom_mode">由于主题引擎依赖Monet,对于低于Android12的设备,动态取色与自定义主题不会生效。</string>
     <string name="restart_required_message">修改该选项需要重启</string>
     <string name="restart_later_message">稍后重启</string>
     <string name="search_select_group">选择书源分组</string>