|
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 4 | xmlns:tools="http://schemas.android.com/tools" |
5 | 5 | android:layout_width="match_parent" |
| 6 | + android:paddingLeft="16dp" |
| 7 | + android:paddingRight="16dp" |
6 | 8 | android:layout_height="match_parent" |
7 | 9 | tools:context=".MainActivity"> |
8 | 10 |
|
| 11 | + <ImageView |
| 12 | + android:id="@+id/imageView" |
| 13 | + android:layout_width="wrap_content" |
| 14 | + android:layout_height="wrap_content" |
| 15 | + android:layout_marginTop="16dp" |
| 16 | + android:contentDescription="@string/img_http_sms_logo" |
| 17 | + app:layout_constraintEnd_toEndOf="parent" |
| 18 | + app:layout_constraintStart_toStartOf="parent" |
| 19 | + app:layout_constraintTop_toTopOf="parent" |
| 20 | + app:srcCompat="@drawable/ic_colored_logo" |
| 21 | + tools:ignore="ImageContrastCheck" /> |
| 22 | + |
9 | 23 | <com.google.android.material.card.MaterialCardView |
10 | 24 | android:id="@+id/card" |
11 | 25 | android:layout_width="match_parent" |
12 | 26 | android:layout_height="wrap_content" |
13 | | - android:layout_margin="8dp" |
| 27 | + android:elevation="16dp" |
| 28 | + app:cardCornerRadius="16dp" |
14 | 29 | app:layout_constraintEnd_toEndOf="parent" |
15 | 30 | app:layout_constraintStart_toStartOf="parent" |
16 | 31 | app:layout_constraintTop_toTopOf="parent"> |
17 | 32 |
|
18 | | - <LinearLayout |
19 | | - android:layout_width="match_parent" |
20 | | - android:layout_height="wrap_content" |
21 | | - android:orientation="vertical" |
22 | | - android:padding="16dp"> |
23 | | - |
24 | | - <!-- Title, secondary and supporting text --> |
25 | | - <LinearLayout |
26 | | - android:layout_width="match_parent" |
27 | | - android:layout_height="match_parent" |
28 | | - android:orientation="horizontal"> |
| 33 | + </com.google.android.material.card.MaterialCardView> |
29 | 34 |
|
30 | | - <TextView |
31 | | - android:id="@+id/cardPhoneNumber" |
32 | | - android:layout_width="wrap_content" |
33 | | - android:layout_height="match_parent" |
34 | | - android:text="@string/phone_number" |
35 | | - android:textAppearance="?attr/textAppearanceTitleMedium" |
36 | | - android:textColor="?android:attr/textColorPrimary" |
37 | | - android:textSize="28sp" /> |
| 35 | + <LinearLayout |
| 36 | + android:layout_width="match_parent" |
| 37 | + android:layout_height="wrap_content" |
| 38 | + android:layout_marginTop="32dp" |
| 39 | + android:orientation="vertical" |
| 40 | + android:padding="16dp" |
| 41 | + android:background="#1E1E1E" |
| 42 | + app:layout_constraintTop_toBottomOf="@+id/imageView" |
| 43 | + tools:layout_editor_absoluteX="0dp"> |
38 | 44 |
|
39 | | - <com.google.android.material.switchmaterial.SwitchMaterial |
40 | | - android:id="@+id/cardSwitch" |
41 | | - android:layout_width="match_parent" |
42 | | - android:layout_height="wrap_content" |
43 | | - android:minHeight="48dp" |
44 | | - android:text="" |
45 | | - tools:ignore="TouchTargetSizeCheck" /> |
46 | | - </LinearLayout> |
| 45 | + <!-- Title, secondary and supporting text --> |
47 | 46 |
|
| 47 | + <LinearLayout |
| 48 | + android:layout_width="match_parent" |
| 49 | + android:layout_height="match_parent" |
| 50 | + android:orientation="horizontal"> |
48 | 51 |
|
49 | 52 | <TextView |
50 | | - android:id="@+id/cardRefreshTime" |
| 53 | + android:id="@+id/cardPhoneNumber" |
51 | 54 | android:layout_width="wrap_content" |
52 | | - android:layout_height="wrap_content" |
53 | | - android:layout_marginTop="8dp" |
54 | | - android:text="@string/nextRefreshTime" |
55 | | - android:textAppearance="?attr/textAppearanceBodyMedium" |
56 | | - android:textColor="?android:attr/textColorSecondary" |
57 | | - android:textSize="16sp" /> |
| 55 | + android:layout_height="match_parent" |
| 56 | + android:text="@string/phone_number" |
| 57 | + android:textAppearance="?attr/textAppearanceTitleMedium" |
| 58 | + android:textColor="?android:attr/textColorPrimary" |
| 59 | + android:textSize="28sp" /> |
58 | 60 |
|
| 61 | + <com.google.android.material.switchmaterial.SwitchMaterial |
| 62 | + android:id="@+id/cardSwitch" |
| 63 | + android:layout_width="match_parent" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:minHeight="48dp" |
| 66 | + tools:ignore="TouchTargetSizeCheck" /> |
59 | 67 | </LinearLayout> |
60 | 68 |
|
61 | | - </com.google.android.material.card.MaterialCardView> |
62 | 69 |
|
63 | | - <Button |
64 | | - android:id="@+id/sign_in_button" |
| 70 | + <TextView |
| 71 | + android:id="@+id/cardRefreshTime" |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:layout_marginTop="8dp" |
| 75 | + android:text="@string/nextRefreshTime" |
| 76 | + android:textAppearance="?attr/textAppearanceBodyMedium" |
| 77 | + android:textColor="?android:attr/textColorSecondary" |
| 78 | + android:textSize="16sp" /> |
| 79 | + |
| 80 | + </LinearLayout> |
| 81 | + |
| 82 | + <com.google.android.material.button.MaterialButton |
| 83 | + style="@style/Widget.MaterialComponents.Button.Icon" |
65 | 84 | android:layout_width="wrap_content" |
66 | 85 | android:layout_height="wrap_content" |
67 | | - android:layout_marginTop="32dp" |
68 | | - android:text="@string/sign_in_button" |
| 86 | + android:layout_marginBottom="16dp" |
| 87 | + android:backgroundTint="@color/black" |
| 88 | + android:drawableTint="@color/white" |
| 89 | + android:padding="10dp" |
| 90 | + android:text="@string/main_log_out" |
| 91 | + android:textColor="@color/white" |
| 92 | + android:textSize="16sp" |
| 93 | + app:icon="@drawable/ic_login" |
| 94 | + app:iconTint="@color/white" |
| 95 | + app:layout_constraintBottom_toBottomOf="parent" |
69 | 96 | app:layout_constraintEnd_toEndOf="parent" |
70 | 97 | app:layout_constraintStart_toStartOf="parent" |
71 | | - app:layout_constraintTop_toBottomOf="@+id/card" /> |
| 98 | + tools:ignore="TextContrastCheck" /> |
72 | 99 |
|
73 | 100 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments