|
19 | 19 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
20 | 20 | android:layout_width="match_parent" |
21 | 21 | android:layout_height="wrap_content" |
22 | | - android:background="@android:color/transparent"> |
| 22 | + android:background="@android:color/transparent" |
| 23 | + android:orientation="vertical"> |
| 24 | + |
| 25 | + <TextView |
| 26 | + android:id="@+id/recommend_tip" |
| 27 | + android:layout_width="match_parent" |
| 28 | + android:layout_height="wrap_content" |
| 29 | + android:paddingStart="@dimen/miuix_theme_content_padding_start" |
| 30 | + android:paddingEnd="@dimen/miuix_theme_content_padding_end" |
| 31 | + android:background="?attr/preferenceCategoryBackground" |
| 32 | + android:importantForAccessibility="no" |
| 33 | + android:minHeight="1px" |
| 34 | + style="@style/TextAppearance.PreferenceCategory" |
| 35 | + android:layout_gravity="start|center" |
| 36 | + android:textAlignment="viewStart" |
| 37 | + android:text="@string/preference_recommend_tip"/> |
23 | 38 |
|
24 | 39 | <LinearLayout |
25 | 40 | android:id="@+id/line_layout" |
|
28 | 43 | android:layout_marginBottom="@dimen/preference_recommend_region_margin" |
29 | 44 | android:background="@drawable/preference_recommend_background" |
30 | 45 | android:orientation="vertical" |
31 | | - android:paddingBottom="@dimen/preference_recommend_region_padding_bottom"> |
32 | | - |
33 | | - <TextView |
34 | | - android:id="@+id/recommend_tip" |
35 | | - android:layout_width="wrap_content" |
36 | | - android:layout_height="wrap_content" |
37 | | - android:layout_marginHorizontal="@dimen/preference_recommend_title_margin_horizontal" |
38 | | - android:layout_marginTop="@dimen/preference_recommend_title_margin_top" |
39 | | - android:layout_marginBottom="@dimen/preference_recommend_title_margin_bottom" |
40 | | - android:text="@string/preference_recommend_tip" |
41 | | - android:textColor="@color/preference_recommend_title_color" |
42 | | - android:textSize="@dimen/miuix_appcompat_normal_text_size" /> |
| 46 | + android:paddingVertical="@dimen/preference_recommend_region_padding_bottom"> |
43 | 47 |
|
44 | 48 | </LinearLayout> |
45 | 49 |
|
|
0 commit comments