|
16 | 16 | <androidx.appcompat.widget.LinearLayoutCompat |
17 | 17 | android:layout_width="match_parent" |
18 | 18 | android:layout_height="wrap_content" |
19 | | - android:orientation="vertical"> |
| 19 | + android:orientation="vertical" |
| 20 | + android:paddingHorizontal="24dp"> |
20 | 21 |
|
21 | 22 | <com.google.android.material.textview.MaterialTextView |
22 | 23 | style="@style/TextAppearance.Material3.HeadlineLarge" |
23 | 24 | android:layout_width="wrap_content" |
24 | 25 | android:layout_height="wrap_content" |
25 | | - android:layout_marginStart="24dp" |
26 | 26 | android:layout_marginTop="24dp" |
27 | 27 | android:text="@string/description" /> |
28 | 28 |
|
29 | 29 | <com.google.android.material.card.MaterialCardView |
30 | 30 | android:layout_width="match_parent" |
31 | 31 | android:layout_height="wrap_content" |
32 | | - android:layout_margin="24dp" |
33 | | - app:cardCornerRadius="24dp"> |
| 32 | + android:layout_marginVertical="24dp" |
| 33 | + app:cardCornerRadius="24dp" |
| 34 | + app:contentPadding="24dp"> |
34 | 35 |
|
35 | 36 | <com.google.android.material.textview.MaterialTextView |
36 | 37 | android:layout_width="match_parent" |
37 | 38 | android:layout_height="wrap_content" |
38 | | - android:layout_margin="24dp" |
39 | 39 | android:text="@string/summary_clocks" /> |
40 | 40 | </com.google.android.material.card.MaterialCardView> |
41 | 41 |
|
42 | 42 | <com.google.android.material.textview.MaterialTextView |
43 | 43 | style="@style/TextAppearance.Material3.HeadlineLarge" |
44 | 44 | android:layout_width="wrap_content" |
45 | 45 | android:layout_height="wrap_content" |
46 | | - android:layout_marginStart="24dp" |
47 | 46 | android:text="@string/layout_preview" /> |
48 | 47 |
|
49 | 48 | <com.google.android.material.textview.MaterialTextView |
50 | 49 | android:id="@+id/simpleAnalogClockText" |
51 | 50 | style="@style/TextAppearance.Material3.HeadlineSmall" |
52 | 51 | android:layout_width="wrap_content" |
53 | 52 | android:layout_height="wrap_content" |
54 | | - android:layout_margin="24dp" |
| 53 | + android:layout_marginVertical="24dp" |
55 | 54 | android:text="@string/clock_analog" /> |
56 | 55 |
|
57 | 56 | <AnalogClock |
58 | 57 | android:id="@+id/simpleAnalogClock" |
59 | 58 | android:layout_width="wrap_content" |
60 | 59 | android:layout_height="108dp" |
61 | 60 | android:layout_gravity="center" |
62 | | - android:layout_margin="24dp" /> |
| 61 | + android:layout_marginVertical="24dp" /> |
63 | 62 |
|
64 | 63 | <com.google.android.material.textview.MaterialTextView |
65 | 64 | style="@style/TextAppearance.Material3.HeadlineSmall" |
66 | 65 | android:layout_width="wrap_content" |
67 | 66 | android:layout_height="wrap_content" |
68 | | - android:layout_margin="24dp" |
| 67 | + android:layout_marginVertical="24dp" |
69 | 68 | android:text="@string/clock_digital" /> |
70 | 69 |
|
71 | 70 | <DigitalClock |
72 | 71 | android:id="@+id/digital_clock" |
73 | 72 | android:layout_width="wrap_content" |
74 | 73 | android:layout_height="wrap_content" |
75 | 74 | android:layout_gravity="center" |
76 | | - android:layout_margin="24dp" /> |
| 75 | + android:layout_marginVertical="24dp" /> |
77 | 76 |
|
78 | 77 | <com.google.android.material.textview.MaterialTextView |
79 | 78 | android:id="@+id/simpleTextClockText" |
80 | 79 | style="@style/TextAppearance.Material3.HeadlineSmall" |
81 | 80 | android:layout_width="wrap_content" |
82 | 81 | android:layout_height="wrap_content" |
83 | | - android:layout_margin="24dp" |
| 82 | + android:layout_marginVertical="24dp" |
84 | 83 | android:text="@string/clock_text" /> |
85 | 84 |
|
86 | 85 | <TextClock |
87 | 86 | android:id="@+id/simpleTextClock" |
88 | 87 | android:layout_width="wrap_content" |
89 | 88 | android:layout_height="wrap_content" |
90 | 89 | android:layout_gravity="center" |
91 | | - android:layout_margin="24dp" /> |
| 90 | + android:layout_marginVertical="24dp" /> |
92 | 91 | </androidx.appcompat.widget.LinearLayoutCompat> |
93 | 92 | </me.zhanghai.android.fastscroll.FastScrollScrollView> |
94 | 93 |
|
|
97 | 96 | style="@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Surface" |
98 | 97 | android:layout_width="wrap_content" |
99 | 98 | android:layout_height="wrap_content" |
100 | | - android:layout_margin="24dp" |
| 99 | + android:layout_marginEnd="24dp" |
| 100 | + android:layout_marginBottom="24dp" |
101 | 101 | android:contentDescription="@string/tooltip_show_java_code_snippet" |
102 | 102 | android:text="@string/show_code" |
103 | 103 | android:textSize="14sp" |
|
0 commit comments