|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 4 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + xmlns:tools="http://schemas.android.com/tools" |
4 | 6 | android:layout_width="match_parent" |
5 | | - android:layout_height="match_parent"> |
| 7 | + android:layout_height="match_parent" |
| 8 | + android:padding="24dp" |
| 9 | + tools:theme="@style/Theme.Material3.Dark"> |
6 | 10 |
|
7 | | - <LinearLayout |
8 | | - android:layout_width="match_parent" |
| 11 | + <com.google.android.material.textview.MaterialTextView |
| 12 | + android:id="@+id/title" |
| 13 | + android:layout_width="wrap_content" |
9 | 14 | android:layout_height="wrap_content" |
| 15 | + android:layout_marginTop="32dp" |
| 16 | + android:text="@string/choose_your_style" |
| 17 | + android:textAppearance="?attr/textAppearanceHeadlineMedium" |
| 18 | + app:layout_constraintTop_toTopOf="parent" |
| 19 | + app:layout_constraintStart_toStartOf="parent" |
| 20 | + app:layout_constraintEnd_toEndOf="parent" /> |
| 21 | + |
| 22 | + <com.google.android.material.textview.MaterialTextView |
| 23 | + android:id="@+id/description" |
| 24 | + android:layout_width="0dp" |
| 25 | + android:layout_height="wrap_content" |
| 26 | + android:layout_marginTop="8dp" |
| 27 | + android:text="@string/select_how_you_d_like_the_app_to_look" |
| 28 | + android:textAppearance="?attr/textAppearanceBodyMedium" |
| 29 | + android:textColor="?attr/colorOnSurfaceVariant" |
| 30 | + app:layout_constraintTop_toBottomOf="@id/title" |
| 31 | + app:layout_constraintStart_toStartOf="parent" |
| 32 | + app:layout_constraintEnd_toEndOf="parent" /> |
| 33 | + |
| 34 | + <RadioGroup |
| 35 | + android:id="@+id/theme_group" |
| 36 | + android:layout_width="0dp" |
| 37 | + android:layout_height="wrap_content" |
| 38 | + android:layout_marginTop="24dp" |
10 | 39 | android:orientation="vertical" |
11 | | - android:padding="24dp"> |
| 40 | + app:layout_constraintTop_toBottomOf="@id/description" |
| 41 | + app:layout_constraintStart_toStartOf="parent" |
| 42 | + app:layout_constraintEnd_toEndOf="parent"> |
12 | 43 |
|
13 | | - <com.google.android.material.card.MaterialCardView |
| 44 | + <com.google.android.material.radiobutton.MaterialRadioButton |
| 45 | + android:id="@+id/radio_system" |
14 | 46 | android:layout_width="match_parent" |
15 | 47 | android:layout_height="wrap_content" |
16 | | - android:padding="16dp" |
17 | | - app:cardElevation="0dp"> |
18 | | - |
19 | | - <LinearLayout |
20 | | - android:layout_width="match_parent" |
21 | | - android:layout_height="wrap_content" |
22 | | - android:orientation="vertical"> |
23 | | - |
24 | | - <com.google.android.material.textview.MaterialTextView |
25 | | - style="@style/TextAppearance.Material3.TitleLarge" |
26 | | - android:layout_width="wrap_content" |
27 | | - android:layout_height="wrap_content" |
28 | | - android:layout_marginBottom="16dp" |
29 | | - android:text="@string/theme" /> |
| 48 | + android:checked="true" |
| 49 | + android:text="@string/follow_system" |
| 50 | + android:layout_marginBottom="16dp" /> |
30 | 51 |
|
31 | | - <RadioGroup |
32 | | - android:id="@+id/theme_group" |
33 | | - android:layout_width="match_parent" |
34 | | - android:layout_height="wrap_content"> |
35 | | - |
36 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
37 | | - android:id="@+id/radio_system" |
38 | | - android:layout_width="wrap_content" |
39 | | - android:layout_height="wrap_content" |
40 | | - android:checked="true" |
41 | | - android:text="@string/follow_system" /> |
42 | | - |
43 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
44 | | - android:id="@+id/radio_light" |
45 | | - android:layout_width="wrap_content" |
46 | | - android:layout_height="wrap_content" |
47 | | - android:text="@string/light_mode" /> |
| 52 | + <com.google.android.material.radiobutton.MaterialRadioButton |
| 53 | + android:id="@+id/radio_light" |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:text="@string/light_mode" |
| 57 | + android:layout_marginBottom="16dp" /> |
48 | 58 |
|
49 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
50 | | - android:id="@+id/radio_dark" |
51 | | - android:layout_width="wrap_content" |
52 | | - android:layout_height="wrap_content" |
53 | | - android:text="@string/dark_mode" /> |
| 59 | + <com.google.android.material.radiobutton.MaterialRadioButton |
| 60 | + android:id="@+id/radio_dark" |
| 61 | + android:layout_width="match_parent" |
| 62 | + android:layout_height="wrap_content" |
| 63 | + android:text="@string/dark_mode" /> |
54 | 64 |
|
55 | | - <com.google.android.material.radiobutton.MaterialRadioButton |
56 | | - android:id="@+id/radio_auto_battery" |
57 | | - android:layout_width="wrap_content" |
58 | | - android:layout_height="wrap_content" |
59 | | - android:text="@string/auto_battery_mode" /> |
60 | | - </RadioGroup> |
61 | | - </LinearLayout> |
62 | | - </com.google.android.material.card.MaterialCardView> |
| 65 | + </RadioGroup> |
63 | 66 |
|
64 | | - </LinearLayout> |
65 | | -</ScrollView> |
| 67 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments