|
13 | 13 | See the License for the specific language governing permissions and
|
14 | 14 | limitations under the License.
|
15 | 15 | -->
|
16 |
| -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 16 | +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
17 | 17 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
18 | 18 | xmlns:tools="http://schemas.android.com/tools"
|
19 | 19 | android:layout_width="match_parent"
|
20 | 20 | android:layout_height="match_parent"
|
21 |
| - android:padding="24dp" |
22 |
| - android:gravity="center_horizontal" |
23 |
| - android:orientation="vertical"> |
| 21 | + android:fitsSystemWindows="true"> |
24 | 22 |
|
25 |
| - <Button |
26 |
| - android:id="@+id/coplanar_side_sheet_close_icon_button" |
27 |
| - style="?attr/materialIconButtonStyle" |
28 |
| - android:layout_width="wrap_content" |
29 |
| - android:layout_height="wrap_content" |
30 |
| - android:contentDescription="@string/cat_sidesheet_close_button_content_desc" |
31 |
| - app:icon="@drawable/ic_close_vd_theme_24px" |
32 |
| - app:iconTint="?attr/colorOnSurfaceVariant" |
33 |
| - app:layout_constraintEnd_toEndOf="parent" |
34 |
| - app:layout_constraintBaseline_toBaselineOf="@id/coplanar_side_sheet_title_text" |
35 |
| - tools:ignore="ContentDescription" /> |
| 23 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 24 | + android:layout_width="match_parent" |
| 25 | + android:layout_height="match_parent" |
| 26 | + android:padding="16dp" |
| 27 | + android:gravity="center_horizontal" |
| 28 | + android:orientation="vertical"> |
36 | 29 |
|
37 |
| - <TextView |
38 |
| - android:id="@+id/coplanar_side_sheet_title_text" |
39 |
| - android:layout_width="0dp" |
40 |
| - android:layout_height="wrap_content" |
41 |
| - android:paddingBottom="24dp" |
42 |
| - android:text="@string/cat_sidesheet_coplanar_title" |
43 |
| - android:textAppearance="?attr/textAppearanceTitleLarge" |
44 |
| - app:layout_constraintEnd_toStartOf="@id/coplanar_side_sheet_close_icon_button" |
45 |
| - app:layout_constraintStart_toStartOf="parent" |
46 |
| - app:layout_constraintTop_toTopOf="parent" /> |
| 30 | + <Button |
| 31 | + android:id="@+id/coplanar_side_sheet_close_icon_button" |
| 32 | + style="?attr/materialIconButtonStyle" |
| 33 | + android:layout_width="wrap_content" |
| 34 | + android:layout_height="wrap_content" |
| 35 | + android:contentDescription="@string/cat_sidesheet_close_button_content_desc" |
| 36 | + app:icon="@drawable/ic_close_vd_theme_24px" |
| 37 | + app:iconTint="?attr/colorOnSurfaceVariant" |
| 38 | + app:layout_constraintEnd_toEndOf="parent" |
| 39 | + app:layout_constraintBaseline_toBaselineOf="@id/coplanar_side_sheet_title_text" |
| 40 | + tools:ignore="ContentDescription" /> |
47 | 41 |
|
48 |
| - <androidx.core.widget.NestedScrollView |
49 |
| - android:layout_width="0dp" |
50 |
| - android:layout_height="wrap_content" |
51 |
| - app:layout_constraintEnd_toEndOf="parent" |
52 |
| - app:layout_constraintStart_toStartOf="parent" |
53 |
| - app:layout_constraintTop_toBottomOf="@id/coplanar_side_sheet_title_text"> |
| 42 | + <TextView |
| 43 | + android:id="@+id/coplanar_side_sheet_title_text" |
| 44 | + android:layout_width="0dp" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:paddingBottom="24dp" |
| 47 | + android:text="@string/cat_sidesheet_coplanar_title" |
| 48 | + android:textAppearance="?attr/textAppearanceTitleLarge" |
| 49 | + app:layout_constraintEnd_toStartOf="@id/coplanar_side_sheet_close_icon_button" |
| 50 | + app:layout_constraintStart_toStartOf="parent" |
| 51 | + app:layout_constraintTop_toTopOf="parent" /> |
54 | 52 |
|
55 |
| - <LinearLayout |
56 |
| - android:layout_width="match_parent" |
| 53 | + <androidx.core.widget.NestedScrollView |
| 54 | + android:layout_width="0dp" |
57 | 55 | android:layout_height="wrap_content"
|
58 |
| - android:orientation="vertical"> |
| 56 | + app:layout_constraintEnd_toEndOf="parent" |
| 57 | + app:layout_constraintStart_toStartOf="parent" |
| 58 | + app:layout_constraintTop_toBottomOf="@id/coplanar_side_sheet_title_text"> |
59 | 59 |
|
60 |
| - <TextView |
61 |
| - android:id="@+id/coplanar_side_sheet_state_text" |
62 |
| - android:layout_width="wrap_content" |
| 60 | + <LinearLayout |
| 61 | + android:layout_width="match_parent" |
63 | 62 | android:layout_height="wrap_content"
|
64 |
| - android:layout_gravity="center" |
65 |
| - android:paddingBottom="4dp" |
66 |
| - android:text="@string/cat_sidesheet_state_settling" |
67 |
| - android:textAppearance="?attr/textAppearanceBodyLarge" /> |
| 63 | + android:orientation="vertical"> |
68 | 64 |
|
69 |
| - <TextView |
70 |
| - android:id="@+id/coplanar_side_sheet_slide_offset_text" |
71 |
| - android:layout_width="wrap_content" |
72 |
| - android:layout_height="wrap_content" |
73 |
| - android:layout_gravity="center" |
74 |
| - android:text="@string/cat_sidesheet_slide_offset_text" |
75 |
| - android:textAppearance="?attr/textAppearanceBodyLarge" /> |
| 65 | + <TextView |
| 66 | + android:id="@+id/coplanar_side_sheet_state_text" |
| 67 | + android:layout_width="wrap_content" |
| 68 | + android:layout_height="wrap_content" |
| 69 | + android:layout_gravity="center" |
| 70 | + android:paddingBottom="4dp" |
| 71 | + android:text="@string/cat_sidesheet_state_settling" |
| 72 | + android:textAppearance="?attr/textAppearanceBodyLarge" /> |
76 | 73 |
|
77 |
| - <TextView |
78 |
| - android:layout_width="wrap_content" |
79 |
| - android:layout_height="wrap_content" |
80 |
| - android:paddingTop="24dp" |
81 |
| - android:text="@string/cat_sidesheet_filler_text" /> |
82 |
| - </LinearLayout> |
83 |
| - </androidx.core.widget.NestedScrollView> |
84 |
| -</androidx.constraintlayout.widget.ConstraintLayout> |
| 74 | + <TextView |
| 75 | + android:id="@+id/coplanar_side_sheet_slide_offset_text" |
| 76 | + android:layout_width="wrap_content" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + android:layout_gravity="center" |
| 79 | + android:text="@string/cat_sidesheet_slide_offset_text" |
| 80 | + android:textAppearance="?attr/textAppearanceBodyLarge" /> |
| 81 | + |
| 82 | + <TextView |
| 83 | + android:layout_width="wrap_content" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:paddingTop="24dp" |
| 86 | + android:text="@string/cat_sidesheet_filler_text" /> |
| 87 | + </LinearLayout> |
| 88 | + </androidx.core.widget.NestedScrollView> |
| 89 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 90 | +</FrameLayout> |
0 commit comments