|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
3 | 4 | xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | android:layout_width="match_parent" |
5 | 6 | android:layout_height="wrap_content" |
6 | 7 | android:background="?attr/selectableItemBackground" |
7 | 8 | android:focusable="true" |
8 | | - android:orientation="vertical" |
| 9 | + android:orientation="horizontal" |
9 | 10 | android:paddingStart="32dp" |
10 | 11 | android:paddingTop="16dp" |
11 | | - android:paddingEnd="8dp" |
| 12 | + android:paddingEnd="16dp" |
12 | 13 | android:paddingBottom="16dp"> |
13 | 14 |
|
14 | | - <TextView |
15 | | - android:id="@+id/option_local_name" |
16 | | - style="@style/TextAppearance.MaterialComponents.Body1" |
17 | | - android:layout_width="wrap_content" |
| 15 | + <LinearLayout |
| 16 | + android:layout_weight="1" |
| 17 | + android:layout_width="0dp" |
18 | 18 | android:layout_height="wrap_content" |
19 | | - android:textColor="@color/textColorPrimary" |
20 | | - tools:text="繁體中文" /> |
| 19 | + android:background="?attr/selectableItemBackground" |
| 20 | + android:focusable="true" |
| 21 | + android:orientation="vertical"> |
| 22 | + <TextView |
| 23 | + android:id="@+id/option_local_name" |
| 24 | + style="@style/TextAppearance.MaterialComponents.Body1" |
| 25 | + android:layout_width="wrap_content" |
| 26 | + android:layout_height="wrap_content" |
| 27 | + android:textColor="@color/textColorPrimary" |
| 28 | + tools:text="繁體中文" /> |
21 | 29 |
|
22 | | - <TextView |
23 | | - android:id="@+id/option_translated_name" |
24 | | - android:layout_width="wrap_content" |
25 | | - android:layout_height="wrap_content" |
26 | | - android:layout_marginTop="4dp" |
27 | | - tools:text="Mandarin - Traditional Han script" /> |
| 30 | + <TextView |
| 31 | + android:id="@+id/option_translated_name" |
| 32 | + android:layout_width="wrap_content" |
| 33 | + android:layout_height="wrap_content" |
| 34 | + android:layout_marginTop="4dp" |
| 35 | + tools:text="Mandarin - Traditional Han script" /> |
| 36 | + </LinearLayout> |
| 37 | + |
| 38 | + <ImageView |
| 39 | + android:id="@+id/icon_selected" |
| 40 | + android:layout_width="35dip" |
| 41 | + android:layout_height="fill_parent" |
| 42 | + android:padding="5dp" |
| 43 | + android:src="@drawable/ic_baseline_done_24" |
| 44 | + app:tint="@color/colorWhite" |
| 45 | + tools:tint="@color/colorAccent"/> |
28 | 46 | </LinearLayout> |
0 commit comments