|
2 | 2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 4 | android:layout_width="match_parent" |
5 | | - android:layout_height="match_parent"> |
| 5 | + android:layout_height="match_parent" |
| 6 | + android:background="?attr/colorSurfaceContainer"> |
6 | 7 |
|
7 | 8 | <LinearLayout |
8 | 9 | android:layout_width="match_parent" |
|
13 | 14 | <com.google.android.material.card.MaterialCardView |
14 | 15 | android:layout_width="match_parent" |
15 | 16 | android:layout_height="wrap_content" |
16 | | - android:padding="16dp" |
| 17 | + app:cardCornerRadius="16dp" |
17 | 18 | app:cardElevation="0dp"> |
18 | 19 |
|
19 | 20 | <LinearLayout |
20 | 21 | android:layout_width="match_parent" |
21 | 22 | android:layout_height="wrap_content" |
22 | | - android:orientation="vertical"> |
| 23 | + android:orientation="vertical" |
| 24 | + android:padding="24dp"> |
23 | 25 |
|
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/onboarding_data_title" /> |
| 26 | + <ImageView |
| 27 | + android:layout_width="64dp" |
| 28 | + android:layout_height="64dp" |
| 29 | + android:layout_gravity="center_horizontal" |
| 30 | + android:src="@drawable/ic_security" |
| 31 | + app:tint="?attr/colorPrimary" |
| 32 | + android:contentDescription="@string/privacy_icon" /> |
30 | 33 |
|
31 | | - <com.google.android.material.switchmaterial.SwitchMaterial |
32 | | - android:id="@+id/switchCrashlytics" |
| 34 | + <com.google.android.material.textview.MaterialTextView |
| 35 | + style="@style/TextAppearance.Material3.HeadlineSmall" |
33 | 36 | android:layout_width="wrap_content" |
34 | 37 | android:layout_height="wrap_content" |
35 | | - android:text="@string/onboarding_data_toggle" /> |
| 38 | + android:layout_gravity="center_horizontal" |
| 39 | + android:layout_marginTop="16dp" |
| 40 | + android:text="@string/onboarding_data_title" |
| 41 | + android:textAlignment="center" /> |
36 | 42 |
|
37 | 43 | <com.google.android.material.textview.MaterialTextView |
38 | | - android:id="@+id/textDetails" |
39 | 44 | style="@style/TextAppearance.Material3.BodyMedium" |
40 | 45 | android:layout_width="wrap_content" |
41 | 46 | android:layout_height="wrap_content" |
| 47 | + android:layout_gravity="center_horizontal" |
42 | 48 | android:layout_marginTop="8dp" |
43 | | - android:text="@string/onboarding_data_active" |
44 | | - android:visibility="gone" /> |
| 49 | + android:text="@string/onboarding_data_subtitle" |
| 50 | + android:textAlignment="center" |
| 51 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
45 | 52 |
|
46 | | - <com.google.android.material.textview.MaterialTextView |
47 | | - android:id="@+id/linkPrivacy" |
48 | | - style="@style/TextAppearance.Material3.BodyMedium" |
49 | | - android:layout_width="wrap_content" |
| 53 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 54 | + android:id="@+id/switchCrashlytics" |
| 55 | + android:layout_width="match_parent" |
50 | 56 | android:layout_height="wrap_content" |
51 | | - android:layout_marginTop="16dp" |
52 | | - android:text="@string/privacy_policy" |
53 | | - android:textColor="?attr/colorPrimary" /> |
| 57 | + android:layout_marginTop="24dp" |
| 58 | + android:text="@string/onboarding_data_toggle" |
| 59 | + android:textAppearance="@style/TextAppearance.Material3.TitleMedium" /> |
54 | 60 |
|
| 61 | + <com.google.android.material.textview.MaterialTextView |
| 62 | + android:id="@+id/textDetails" |
| 63 | + style="@style/TextAppearance.Material3.BodySmall" |
| 64 | + android:layout_width="match_parent" |
| 65 | + android:layout_height="wrap_content" |
| 66 | + android:layout_marginTop="8dp" |
| 67 | + android:text="@string/onboarding_data_active" |
| 68 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
55 | 69 | </LinearLayout> |
56 | 70 | </com.google.android.material.card.MaterialCardView> |
| 71 | + |
| 72 | + <LinearLayout |
| 73 | + android:layout_width="match_parent" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:orientation="horizontal" |
| 76 | + android:gravity="center_vertical" |
| 77 | + android:layout_marginTop="24dp"> |
| 78 | + |
| 79 | + <com.google.android.material.textview.MaterialTextView |
| 80 | + android:id="@+id/linkPrivacy" |
| 81 | + style="@style/TextAppearance.Material3.BodyMedium" |
| 82 | + android:layout_width="0dp" |
| 83 | + android:layout_height="wrap_content" |
| 84 | + android:layout_weight="1" |
| 85 | + android:text="@string/privacy_policy_link" |
| 86 | + android:textColor="?attr/colorPrimary" |
| 87 | + android:clickable="true" |
| 88 | + android:focusable="true" /> |
| 89 | + |
| 90 | + <ImageView |
| 91 | + android:layout_width="wrap_content" |
| 92 | + android:layout_height="wrap_content" |
| 93 | + android:src="@drawable/ic_arrow_forward" |
| 94 | + app:tint="?attr/colorPrimary" |
| 95 | + android:contentDescription="@string/arrow_icon" /> |
| 96 | + </LinearLayout> |
| 97 | + |
57 | 98 | </LinearLayout> |
58 | 99 | </ScrollView> |
0 commit comments