|
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 xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | android:layout_width="match_parent" |
5 | | - android:layout_height="match_parent"> |
| 6 | + android:layout_height="match_parent" |
| 7 | + android:padding="24dp"> |
6 | 8 |
|
7 | 9 | <LinearLayout |
8 | | - android:layout_width="match_parent" |
| 10 | + android:id="@+id/content" |
| 11 | + android:layout_width="0dp" |
9 | 12 | android:layout_height="wrap_content" |
| 13 | + android:gravity="center_horizontal" |
10 | 14 | android:orientation="vertical" |
11 | | - android:padding="24dp"> |
| 15 | + app:layout_constraintTop_toTopOf="parent" |
| 16 | + app:layout_constraintBottom_toBottomOf="parent" |
| 17 | + app:layout_constraintStart_toStartOf="parent" |
| 18 | + app:layout_constraintEnd_toEndOf="parent"> |
12 | 19 |
|
13 | 20 | <com.google.android.material.card.MaterialCardView |
| 21 | + style="@style/Widget.Material3.CardView.Outlined" |
14 | 22 | android:layout_width="match_parent" |
15 | 23 | android:layout_height="wrap_content" |
16 | | - android:padding="24dp" |
17 | | - app:cardElevation="0dp"> |
| 24 | + app:cardCornerRadius="24dp" |
| 25 | + app:cardElevation="0dp" |
| 26 | + app:strokeWidth="1dp"> |
18 | 27 |
|
19 | 28 | <LinearLayout |
20 | 29 | android:layout_width="match_parent" |
21 | 30 | android:layout_height="wrap_content" |
22 | 31 | android:gravity="center" |
23 | | - android:orientation="vertical"> |
| 32 | + android:orientation="vertical" |
| 33 | + android:padding="32dp"> |
24 | 34 |
|
25 | 35 | <ImageView |
26 | | - android:layout_width="64dp" |
27 | | - android:layout_height="64dp" |
28 | | - android:layout_marginBottom="16dp" |
29 | | - android:src="@drawable/ic_check_circle" /> |
| 36 | + android:id="@+id/success_icon" |
| 37 | + android:layout_width="80dp" |
| 38 | + android:layout_height="80dp" |
| 39 | + android:src="@drawable/ic_check_circle" |
| 40 | + android:contentDescription="@string/success_icon" |
| 41 | + app:tint="?attr/colorPrimary" /> |
30 | 42 |
|
31 | 43 | <com.google.android.material.textview.MaterialTextView |
32 | | - style="@style/TextAppearance.Material3.TitleLarge" |
| 44 | + android:id="@+id/title_text" |
| 45 | + style="@style/TextAppearance.Material3.HeadlineSmall" |
33 | 46 | android:layout_width="wrap_content" |
34 | 47 | android:layout_height="wrap_content" |
35 | | - android:layout_marginBottom="8dp" |
36 | | - android:text="@string/onboarding_done_title" /> |
| 48 | + android:layout_marginTop="24dp" |
| 49 | + android:text="@string/onboarding_done_title" |
| 50 | + android:textAlignment="center" /> |
37 | 51 |
|
38 | 52 | <com.google.android.material.textview.MaterialTextView |
39 | | - style="@style/TextAppearance.Material3.BodyMedium" |
| 53 | + android:id="@+id/subtitle_text" |
| 54 | + style="@style/TextAppearance.Material3.BodyLarge" |
40 | 55 | android:layout_width="wrap_content" |
41 | 56 | android:layout_height="wrap_content" |
42 | | - android:gravity="center" |
43 | | - android:text="@string/onboarding_done_subtitle" /> |
| 57 | + android:layout_marginTop="12dp" |
| 58 | + android:text="@string/onboarding_done_subtitle" |
| 59 | + android:textAlignment="center" |
| 60 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
44 | 61 |
|
45 | 62 | </LinearLayout> |
46 | 63 | </com.google.android.material.card.MaterialCardView> |
| 64 | + |
| 65 | + <com.google.android.material.button.MaterialButton |
| 66 | + android:id="@+id/button_get_started" |
| 67 | + android:layout_width="wrap_content" |
| 68 | + android:layout_height="wrap_content" |
| 69 | + android:layout_marginTop="24dp" |
| 70 | + android:text="@string/get_started_button" |
| 71 | + app:icon="@drawable/ic_arrow_forward" |
| 72 | + app:iconGravity="textStart" /> |
| 73 | + |
47 | 74 | </LinearLayout> |
48 | | -</ScrollView> |
| 75 | + |
| 76 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments