|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - xmlns:tools="http://schemas.android.com/tools" |
4 | | - android:orientation="vertical" |
| 3 | + xmlns:tools="http://schemas.android.com/tools" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="match_parent" |
| 6 | + android:orientation="vertical"> |
| 7 | + |
| 8 | + <FrameLayout |
5 | 9 | android:layout_width="match_parent" |
6 | | - android:layout_height="match_parent"> |
| 10 | + android:layout_height="wrap_content" |
| 11 | + android:layout_marginBottom="10dp"> |
| 12 | + |
| 13 | + <com.google.android.material.bottomsheet.BottomSheetDragHandleView |
| 14 | + android:id="@+id/drag_handle" |
| 15 | + android:layout_width="match_parent" |
| 16 | + android:layout_height="wrap_content" |
| 17 | + android:visibility="gone" /> |
7 | 18 |
|
8 | | - <TextView |
| 19 | + <TextView |
9 | 20 | android:id="@+id/text1" |
| 21 | + android:layout_width="wrap_content" |
| 22 | + android:layout_height="wrap_content" |
| 23 | + android:layout_marginTop="30dp" |
10 | 24 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
11 | 25 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
12 | | - android:layout_marginTop="20dp" |
13 | | - android:layout_marginBottom="10dp" |
14 | 26 | android:textStyle="bold" |
15 | 27 | android:textSize="20sp" |
16 | 28 | android:textColor="?attr/textColor" |
17 | | - android:layout_width="match_parent" |
18 | | - android:layout_rowWeight="1" |
19 | | - tools:text="Test" |
20 | | - android:layout_height="wrap_content" /> |
| 29 | + tools:text="Test" /> |
| 30 | + </FrameLayout> |
21 | 31 |
|
22 | 32 | <ListView |
23 | | - android:nextFocusRight="@id/cancel_btt" |
24 | | - android:nextFocusLeft="@id/apply_btt" |
25 | | - android:dividerHeight="1dp" |
26 | | - android:id="@+id/listview1" |
27 | | - android:layout_marginBottom="60dp" |
28 | | - android:paddingTop="10dp" |
29 | | - android:requiresFadingEdge="vertical" |
30 | | - tools:listitem="@layout/sort_bottom_single_choice" |
31 | | - android:layout_width="match_parent" |
32 | | - android:layout_height="match_parent" |
33 | | - android:layout_rowWeight="1" /> |
| 33 | + android:id="@+id/listview1" |
| 34 | + android:layout_width="match_parent" |
| 35 | + android:layout_height="0dp" |
| 36 | + android:layout_weight="1" |
| 37 | + android:paddingTop="10dp" |
| 38 | + android:dividerHeight="1dp" |
| 39 | + android:requiresFadingEdge="vertical" |
| 40 | + android:nextFocusRight="@id/cancel_btt" |
| 41 | + android:nextFocusLeft="@id/apply_btt" |
| 42 | + tools:listitem="@layout/sort_bottom_single_choice" /> |
34 | 43 |
|
35 | 44 | <LinearLayout |
36 | | - android:id="@+id/apply_btt_holder" |
37 | | - android:orientation="horizontal" |
38 | | - android:layout_gravity="bottom" |
39 | | - android:gravity="bottom|end" |
40 | | - android:layout_marginTop="-60dp" |
41 | | - android:layout_width="match_parent" |
42 | | - android:layout_height="60dp"> |
| 45 | + android:id="@+id/apply_btt_holder" |
| 46 | + android:layout_width="match_parent" |
| 47 | + android:layout_height="60dp" |
| 48 | + android:gravity="center_vertical|end" |
| 49 | + android:orientation="horizontal"> |
43 | 50 |
|
44 | 51 | <com.google.android.material.button.MaterialButton |
45 | | - style="@style/WhiteButton" |
46 | | - android:layout_gravity="center_vertical|end" |
47 | | - android:text="@string/sort_apply" |
48 | | - android:id="@+id/apply_btt" |
49 | | - android:layout_width="wrap_content" /> |
| 52 | + android:id="@+id/apply_btt" |
| 53 | + android:layout_width="wrap_content" |
| 54 | + android:layout_gravity="center_vertical|end" |
| 55 | + android:text="@string/sort_apply" |
| 56 | + style="@style/WhiteButton" /> |
50 | 57 |
|
51 | 58 | <com.google.android.material.button.MaterialButton |
52 | | - style="@style/BlackButton" |
53 | | - android:layout_gravity="center_vertical|end" |
54 | | - android:text="@string/sort_cancel" |
55 | | - android:id="@+id/cancel_btt" |
56 | | - android:layout_width="wrap_content" /> |
| 59 | + android:id="@+id/cancel_btt" |
| 60 | + android:layout_width="wrap_content" |
| 61 | + android:layout_gravity="center_vertical|end" |
| 62 | + android:text="@string/sort_cancel" |
| 63 | + style="@style/BlackButton" /> |
57 | 64 | </LinearLayout> |
58 | 65 | </LinearLayout> |
0 commit comments