|
32 | 32 | android:paddingBottom="16dp" |
33 | 33 | android:gravity="center_horizontal" |
34 | 34 | android:orientation="vertical"> |
35 | | - <LinearLayout |
36 | | - android:layout_width="match_parent" |
37 | | - android:layout_height="wrap_content" |
38 | | - android:baselineAligned="false" |
39 | | - android:orientation="horizontal"> |
40 | | - <LinearLayout |
41 | | - android:layout_width="0dp" |
42 | | - android:layout_height="wrap_content" |
43 | | - android:layout_weight="1" |
44 | | - android:orientation="vertical" |
45 | | - android:gravity="center_horizontal"> |
46 | | - |
47 | | - <TextView |
48 | | - android:textStyle="bold" |
49 | | - android:layout_width="wrap_content" |
50 | | - android:layout_height="wrap_content" |
51 | | - android:paddingTop="8dp" |
52 | | - android:text="@string/cat_btn_text" |
53 | | - android:textSize="16sp"/> |
54 | | - |
55 | | - <Button |
56 | | - android:id="@+id/material_button" |
57 | | - android:layout_width="wrap_content" |
58 | | - android:layout_height="wrap_content" |
59 | | - android:text="@string/cat_button_label_enabled"/> |
60 | 35 |
|
61 | | - <TextView |
62 | | - android:textStyle="bold" |
63 | | - android:layout_width="wrap_content" |
64 | | - android:layout_height="wrap_content" |
65 | | - android:paddingTop="8dp" |
66 | | - android:text="@string/cat_unelevated_btn_text" |
67 | | - android:textSize="16sp"/> |
| 36 | + <TextView |
| 37 | + android:textStyle="bold" |
| 38 | + android:layout_width="wrap_content" |
| 39 | + android:layout_height="wrap_content" |
| 40 | + android:paddingTop="8dp" |
| 41 | + android:text="@string/cat_btn_text" |
| 42 | + android:textSize="16sp"/> |
68 | 43 |
|
69 | | - <Button |
70 | | - android:id="@+id/material_unelevated_button" |
71 | | - style="@style/Widget.Material3.Button.UnelevatedButton" |
72 | | - android:layout_width="wrap_content" |
73 | | - android:layout_height="wrap_content" |
74 | | - android:text="@string/cat_button_label_enabled" /> |
| 44 | + <Button |
| 45 | + android:id="@+id/material_button" |
| 46 | + android:layout_width="wrap_content" |
| 47 | + android:layout_height="wrap_content" |
| 48 | + android:text="@string/cat_button_label_enabled"/> |
75 | 49 |
|
76 | | - <TextView |
77 | | - android:textStyle="bold" |
78 | | - android:layout_width="wrap_content" |
79 | | - android:layout_height="wrap_content" |
80 | | - android:paddingTop="8dp" |
81 | | - android:text="@string/cat_icon_btn_text" |
82 | | - android:textSize="16sp"/> |
| 50 | + <TextView |
| 51 | + android:textStyle="bold" |
| 52 | + android:layout_width="wrap_content" |
| 53 | + android:layout_height="wrap_content" |
| 54 | + android:paddingTop="8dp" |
| 55 | + android:text="@string/cat_unelevated_btn_text" |
| 56 | + android:textSize="16sp"/> |
83 | 57 |
|
84 | | - <Button |
85 | | - android:id="@+id/material_icon_button" |
86 | | - style="@style/Widget.Material3.Button.Icon" |
87 | | - android:layout_width="wrap_content" |
88 | | - android:layout_height="wrap_content" |
89 | | - android:text="@string/cat_button_label_enabled" |
90 | | - app:icon="@drawable/ic_dialogs_24px"/> |
| 58 | + <Button |
| 59 | + android:id="@+id/material_unelevated_button" |
| 60 | + style="@style/Widget.Material3.Button.UnelevatedButton" |
| 61 | + android:layout_width="wrap_content" |
| 62 | + android:layout_height="wrap_content" |
| 63 | + android:text="@string/cat_button_label_enabled" /> |
91 | 64 |
|
92 | | - </LinearLayout> |
93 | | - <LinearLayout |
94 | | - android:layout_width="0dp" |
| 65 | + <TextView |
| 66 | + android:textStyle="bold" |
| 67 | + android:layout_width="wrap_content" |
95 | 68 | android:layout_height="wrap_content" |
96 | | - android:layout_weight="1" |
97 | | - android:orientation="vertical" |
98 | | - android:gravity="center_horizontal"> |
| 69 | + android:paddingTop="8dp" |
| 70 | + android:text="@string/cat_icon_btn_text" |
| 71 | + android:textSize="16sp"/> |
99 | 72 |
|
100 | | - <TextView |
101 | | - android:textStyle="bold" |
102 | | - android:layout_width="wrap_content" |
103 | | - android:layout_height="wrap_content" |
104 | | - android:paddingTop="8dp" |
105 | | - android:text="@string/cat_text_btn_text" |
106 | | - android:textSize="16sp"/> |
| 73 | + <Button |
| 74 | + android:id="@+id/material_icon_button" |
| 75 | + style="@style/Widget.Material3.Button.Icon" |
| 76 | + android:layout_width="wrap_content" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + android:text="@string/cat_button_label_enabled" |
| 79 | + app:icon="@drawable/ic_dialogs_24px"/> |
107 | 80 |
|
108 | | - <Button |
109 | | - android:id="@+id/material_text_button" |
110 | | - style="@style/Widget.Material3.Button.TextButton" |
111 | | - android:layout_width="wrap_content" |
112 | | - android:layout_height="wrap_content" |
113 | | - android:text="@string/cat_button_label_enabled"/> |
| 81 | + <TextView |
| 82 | + android:textStyle="bold" |
| 83 | + android:layout_width="wrap_content" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:paddingTop="8dp" |
| 86 | + android:text="@string/cat_text_btn_text" |
| 87 | + android:textSize="16sp"/> |
114 | 88 |
|
115 | | - <TextView |
116 | | - android:textStyle="bold" |
117 | | - android:layout_width="wrap_content" |
118 | | - android:layout_height="wrap_content" |
119 | | - android:paddingTop="8dp" |
120 | | - android:text="@string/cat_outlined_btn_text" |
121 | | - android:textSize="16sp"/> |
| 89 | + <Button |
| 90 | + android:id="@+id/material_text_button" |
| 91 | + style="@style/Widget.Material3.Button.TextButton" |
| 92 | + android:layout_width="wrap_content" |
| 93 | + android:layout_height="wrap_content" |
| 94 | + android:text="@string/cat_button_label_enabled"/> |
122 | 95 |
|
123 | | - <Button |
124 | | - android:id="@+id/material_outlined_button" |
125 | | - style="?attr/materialButtonOutlinedStyle" |
126 | | - android:layout_width="wrap_content" |
127 | | - android:layout_height="wrap_content" |
128 | | - android:text="@string/cat_button_label_enabled"/> |
| 96 | + <TextView |
| 97 | + android:textStyle="bold" |
| 98 | + android:layout_width="wrap_content" |
| 99 | + android:layout_height="wrap_content" |
| 100 | + android:paddingTop="8dp" |
| 101 | + android:text="@string/cat_icon_text_btn_text" |
| 102 | + android:textSize="16sp"/> |
129 | 103 |
|
130 | | - <TextView |
131 | | - android:textStyle="bold" |
132 | | - android:layout_width="wrap_content" |
133 | | - android:layout_height="wrap_content" |
134 | | - android:paddingTop="8dp" |
135 | | - android:text="@string/cat_icon_text_btn_text" |
136 | | - android:textSize="16sp"/> |
| 104 | + <Button |
| 105 | + android:id="@+id/material_icon_text_button" |
| 106 | + style="@style/Widget.Material3.Button.TextButton.Icon" |
| 107 | + android:layout_width="wrap_content" |
| 108 | + android:layout_height="wrap_content" |
| 109 | + android:text="@string/cat_button_label_enabled" |
| 110 | + app:icon="@drawable/ic_dialogs_24px"/> |
137 | 111 |
|
138 | | - <Button |
139 | | - android:id="@+id/material_icon_text_button" |
140 | | - style="@style/Widget.Material3.Button.TextButton.Icon" |
141 | | - android:layout_width="wrap_content" |
142 | | - android:layout_height="wrap_content" |
143 | | - android:text="@string/cat_button_label_enabled" |
144 | | - app:icon="@drawable/ic_dialogs_24px"/> |
| 112 | + <TextView |
| 113 | + android:textStyle="bold" |
| 114 | + android:layout_width="wrap_content" |
| 115 | + android:layout_height="wrap_content" |
| 116 | + android:paddingTop="8dp" |
| 117 | + android:text="@string/cat_outlined_btn_text" |
| 118 | + android:textSize="16sp"/> |
145 | 119 |
|
146 | | - </LinearLayout> |
147 | | - </LinearLayout> |
| 120 | + <Button |
| 121 | + android:id="@+id/material_outlined_button" |
| 122 | + style="?attr/materialButtonOutlinedStyle" |
| 123 | + android:layout_width="wrap_content" |
| 124 | + android:layout_height="wrap_content" |
| 125 | + android:text="@string/cat_button_label_enabled"/> |
148 | 126 |
|
149 | 127 | <TextView |
150 | 128 | android:textStyle="bold" |
|
252 | 230 | android:id="@+id/cat_button_enabled_switch" |
253 | 231 | android:layout_width="wrap_content" |
254 | 232 | android:layout_height="wrap_content" |
| 233 | + android:layout_marginTop="16dp" |
255 | 234 | android:checked="true" |
256 | 235 | android:text="@string/cat_button_label_enabled"/> |
257 | | - |
258 | | - <com.google.android.material.materialswitch.MaterialSwitch |
259 | | - android:id="@+id/cat_button_morph_corner_switch" |
260 | | - android:layout_width="wrap_content" |
261 | | - android:layout_height="wrap_content" |
262 | | - android:checked="false" |
263 | | - android:text="@string/cat_button_morph_corner"/> |
264 | 236 | </LinearLayout> |
265 | 237 | </ScrollView> |
266 | 238 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments