|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <androidx.drawerlayout.widget.DrawerLayout |
3 | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 5 | xmlns:tools="http://schemas.android.com/tools" |
| 6 | + android:id="@+id/drawer_layout" |
5 | 7 | android:layout_width="match_parent" |
6 | 8 | android:layout_height="match_parent" |
7 | | - android:clipToPadding="true" |
8 | 9 | android:fitsSystemWindows="false" |
9 | 10 | tools:openDrawer="start"> |
10 | 11 |
|
11 | | - <!-- 1. Nội dung chính của màn hình (luôn nằm ở trên cùng trong XML) --> |
| 12 | + <!-- 1. Nội dung chính của màn hình --> |
12 | 13 | <include |
13 | 14 | layout="@layout/app_bar_main" |
14 | 15 | android:layout_width="match_parent" |
15 | 16 | android:layout_height="match_parent" /> |
16 | 17 |
|
17 | | - <!-- 2. Menu Drawer mờ (Nằm bên dưới, có layout_gravity="start") --> |
| 18 | + <!-- 2. Menu Drawer mờ (Khuyên dùng chiều rộng cố định khoảng 300dp - 320dp) --> |
18 | 19 | <com.omarea.common.ui.BlurViewLinearLayout |
19 | | - android:layout_width="match_parent" |
| 20 | + android:id="@+id/file_drawer_container" |
| 21 | + android:layout_width="300dp" |
20 | 22 | android:layout_height="match_parent" |
21 | 23 | android:layout_gravity="start" |
22 | | - android:id="@+id/file_activi" |
23 | 24 | android:orientation="vertical"> |
24 | 25 |
|
25 | | - <ListView |
| 26 | + <!-- Nên thay ListView bằng RecyclerView --> |
| 27 | + <androidx.recyclerview.widget.RecyclerView |
26 | 28 | android:id="@+id/file_selector_list" |
27 | 29 | android:layout_width="match_parent" |
28 | 30 | android:layout_height="match_parent" |
29 | 31 | android:layout_marginTop="?attr/actionBarSize" |
30 | | - android:fastScrollEnabled="true" |
31 | | - android:fadingEdge="vertical" |
32 | | - android:requiresFadingEdge="vertical" |
33 | | - android:scrollbarStyle="insideOverlay" |
34 | | - android:smoothScrollbar="true" /> |
| 32 | + android:scrollbars="vertical" /> |
35 | 33 |
|
36 | 34 | </com.omarea.common.ui.BlurViewLinearLayout> |
37 | 35 |
|
|
0 commit comments