|
19 | 19 | android:layout_height="match_parent" |
20 | 20 | android:orientation="vertical"> |
21 | 21 |
|
22 | | - <!-- Hàng "Chọn tất cả" cố định ở đầu trang, chỉ hiện khi đang ở chế độ chọn nhiều (multiple) --> |
23 | | - <LinearLayout |
| 22 | + <!-- Hàng "Chọn tất cả" cố định ở đầu trang, chỉ hiện khi đang ở chế độ chọn nhiều (multiple). |
| 23 | + Dùng đúng 1 CheckBox (layoutDirection rtl) để chữ dính sát ô vuông, và padding 6dp |
| 24 | + giống hệt list_item_file/list_item_dir để ô vuông thẳng hàng với checkbox bên dưới. --> |
| 25 | + <RelativeLayout |
24 | 26 | android:id="@+id/select_all_block" |
25 | | - android:orientation="horizontal" |
26 | | - android:gravity="center_vertical" |
27 | 27 | android:visibility="gone" |
28 | 28 | android:clickable="true" |
29 | 29 | android:focusable="true" |
30 | | - android:paddingStart="16dp" |
31 | | - android:paddingEnd="16dp" |
32 | | - android:paddingTop="10dp" |
33 | | - android:paddingBottom="10dp" |
| 30 | + android:paddingStart="6dp" |
| 31 | + android:paddingEnd="6dp" |
| 32 | + android:paddingTop="6dp" |
| 33 | + android:paddingBottom="6dp" |
34 | 34 | android:layout_width="match_parent" |
35 | 35 | android:layout_height="wrap_content"> |
36 | 36 |
|
37 | | - <TextView |
38 | | - android:id="@+id/select_all_label" |
| 37 | + <CheckBox |
| 38 | + android:id="@+id/select_all" |
39 | 39 | android:text="@string/select_all" |
| 40 | + android:layoutDirection="rtl" |
40 | 41 | android:textColor="?android:attr/textColorPrimary" |
41 | 42 | android:textSize="14dp" |
42 | | - android:layout_width="0dp" |
43 | | - android:layout_weight="1" |
44 | | - android:layout_height="wrap_content" /> |
45 | | - |
46 | | - <CheckBox |
47 | | - android:id="@+id/select_all" |
| 43 | + android:minWidth="0dp" |
| 44 | + android:minHeight="0dp" |
48 | 45 | android:clickable="true" |
49 | 46 | android:focusable="true" |
| 47 | + android:layout_alignParentEnd="true" |
| 48 | + android:layout_centerVertical="true" |
50 | 49 | android:layout_width="wrap_content" |
51 | 50 | android:layout_height="wrap_content" /> |
52 | | - </LinearLayout> |
| 51 | + </RelativeLayout> |
53 | 52 |
|
54 | 53 | <ListView |
55 | 54 | android:id="@+id/file_selector_list" |
|
0 commit comments