|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
2 | | -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | | - android:layout_width="match_parent" |
5 | | - android:layout_height="match_parent"> |
| 1 | +<layout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:app="http://schemas.android.com/apk/res-auto"> |
6 | 3 |
|
7 | | - <LinearLayout |
| 4 | + <ScrollView |
8 | 5 | android:layout_width="match_parent" |
9 | | - android:layout_height="wrap_content" |
10 | | - android:orientation="vertical" |
11 | | - android:padding="24dp"> |
| 6 | + android:layout_height="match_parent"> |
12 | 7 |
|
13 | | - <com.google.android.material.card.MaterialCardView |
| 8 | + <LinearLayout |
14 | 9 | android:layout_width="match_parent" |
15 | 10 | android:layout_height="wrap_content" |
16 | | - android:padding="16dp" |
17 | | - app:cardElevation="0dp"> |
| 11 | + android:orientation="vertical" |
| 12 | + android:padding="24dp"> |
| 13 | + |
| 14 | + <com.google.android.material.textview.MaterialTextView |
| 15 | + android:id="@+id/title" |
| 16 | + style="@style/TextAppearance.Material3.TitleLarge" |
| 17 | + android:layout_width="wrap_content" |
| 18 | + android:layout_height="wrap_content" |
| 19 | + android:text="@string/bottom_navigation_labels" /> |
| 20 | + |
| 21 | + <com.google.android.material.textview.MaterialTextView |
| 22 | + android:id="@+id/description" |
| 23 | + android:layout_width="wrap_content" |
| 24 | + android:layout_height="wrap_content" |
| 25 | + android:layout_marginTop="8dp" |
| 26 | + android:text="@string/bottom_navigation_labels_description" |
| 27 | + android:textAppearance="?attr/textAppearanceBodyMedium" |
| 28 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
18 | 29 |
|
19 | 30 | <LinearLayout |
| 31 | + android:id="@+id/labels_group" |
20 | 32 | android:layout_width="match_parent" |
21 | 33 | android:layout_height="wrap_content" |
22 | | - android:orientation="vertical"> |
| 34 | + android:orientation="vertical" |
| 35 | + android:layout_marginTop="24dp"> |
23 | 36 |
|
24 | | - <com.google.android.material.textview.MaterialTextView |
25 | | - style="@style/TextAppearance.Material3.TitleLarge" |
26 | | - android:layout_width="wrap_content" |
| 37 | + <com.google.android.material.card.MaterialCardView |
| 38 | + android:id="@+id/card_labeled" |
| 39 | + android:layout_width="match_parent" |
27 | 40 | android:layout_height="wrap_content" |
28 | | - android:layout_marginBottom="16dp" |
29 | | - android:text="@string/bottom_navigation_labels" /> |
| 41 | + app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewTopRounded"> |
| 42 | + |
| 43 | + <include |
| 44 | + android:id="@+id/option_labeled" |
| 45 | + layout="@layout/item_onboarding_simple_option" |
| 46 | + app:text="@{@string/labeled}" /> |
| 47 | + </com.google.android.material.card.MaterialCardView> |
30 | 48 |
|
31 | | - <RadioGroup |
32 | | - android:id="@+id/labels_group" |
| 49 | + <com.google.android.material.card.MaterialCardView |
| 50 | + android:id="@+id/card_selected" |
33 | 51 | android:layout_width="match_parent" |
34 | | - android:layout_height="wrap_content"> |
35 | | - |
36 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
37 | | - android:id="@+id/radio_labeled" |
38 | | - android:layout_width="wrap_content" |
39 | | - android:layout_height="wrap_content" |
40 | | - android:checked="true" |
41 | | - android:text="@string/labeled" /> |
42 | | - |
43 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
44 | | - android:id="@+id/radio_selected" |
45 | | - android:layout_width="wrap_content" |
46 | | - android:layout_height="wrap_content" |
47 | | - android:text="@string/selected" /> |
48 | | - |
49 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
50 | | - android:id="@+id/radio_unlabeled" |
51 | | - android:layout_width="wrap_content" |
52 | | - android:layout_height="wrap_content" |
53 | | - android:text="@string/unlabeled" /> |
54 | | - </RadioGroup> |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_marginTop="2dp" |
| 54 | + app:cardCornerRadius="4dp"> |
| 55 | + |
| 56 | + <include |
| 57 | + android:id="@+id/option_selected" |
| 58 | + layout="@layout/item_onboarding_simple_option" |
| 59 | + app:text='@{String.format(@string/selected, @string/app_name)}' /> |
| 60 | + </com.google.android.material.card.MaterialCardView> |
| 61 | + |
| 62 | + <com.google.android.material.card.MaterialCardView |
| 63 | + android:id="@+id/card_unlabeled" |
| 64 | + android:layout_width="match_parent" |
| 65 | + android:layout_height="wrap_content" |
| 66 | + android:layout_marginTop="2dp" |
| 67 | + app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewBottomRounded"> |
| 68 | + |
| 69 | + <include |
| 70 | + android:id="@+id/option_unlabeled" |
| 71 | + layout="@layout/item_onboarding_simple_option" |
| 72 | + app:text="@{@string/unlabeled}" /> |
| 73 | + </com.google.android.material.card.MaterialCardView> |
| 74 | + |
55 | 75 | </LinearLayout> |
56 | | - </com.google.android.material.card.MaterialCardView> |
57 | 76 |
|
58 | | - </LinearLayout> |
59 | | -</ScrollView> |
| 77 | + </LinearLayout> |
| 78 | + </ScrollView> |
| 79 | +</layout> |
0 commit comments