|
32 | 32 | android:paddingBottom="16dp" |
33 | 33 | android:gravity="center_horizontal" |
34 | 34 | android:orientation="vertical"> |
35 | | - |
36 | | - <TextView |
37 | | - android:textStyle="bold" |
38 | | - android:layout_width="wrap_content" |
| 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" |
39 | 42 | android:layout_height="wrap_content" |
40 | | - android:paddingTop="8dp" |
41 | | - android:text="@string/cat_btn_text" |
42 | | - android:textSize="16sp"/> |
| 43 | + android:layout_weight="1" |
| 44 | + android:orientation="vertical" |
| 45 | + android:gravity="center_horizontal"> |
43 | 46 |
|
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"/> |
| 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"/> |
49 | 54 |
|
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"/> |
| 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"/> |
57 | 60 |
|
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" /> |
| 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"/> |
64 | 68 |
|
65 | | - <TextView |
66 | | - android:textStyle="bold" |
67 | | - android:layout_width="wrap_content" |
68 | | - android:layout_height="wrap_content" |
69 | | - android:paddingTop="8dp" |
70 | | - android:text="@string/cat_icon_btn_text" |
71 | | - android:textSize="16sp"/> |
| 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" /> |
72 | 75 |
|
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"/> |
| 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"/> |
80 | 83 |
|
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"/> |
| 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"/> |
88 | 91 |
|
89 | | - <Button |
90 | | - android:id="@+id/material_text_button" |
91 | | - style="@style/Widget.Material3.Button.TextButton" |
92 | | - android:layout_width="wrap_content" |
| 92 | + </LinearLayout> |
| 93 | + <LinearLayout |
| 94 | + android:layout_width="0dp" |
93 | 95 | android:layout_height="wrap_content" |
94 | | - android:text="@string/cat_button_label_enabled"/> |
| 96 | + android:layout_weight="1" |
| 97 | + android:orientation="vertical" |
| 98 | + android:gravity="center_horizontal"> |
95 | 99 |
|
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"/> |
| 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"/> |
103 | 107 |
|
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"/> |
| 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"/> |
111 | 114 |
|
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"/> |
| 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"/> |
119 | 122 |
|
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"/> |
| 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"/> |
| 129 | + |
| 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"/> |
| 137 | + |
| 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"/> |
| 145 | + |
| 146 | + </LinearLayout> |
| 147 | + </LinearLayout> |
126 | 148 |
|
127 | 149 | <TextView |
128 | 150 | android:textStyle="bold" |
|
230 | 252 | android:id="@+id/cat_button_enabled_switch" |
231 | 253 | android:layout_width="wrap_content" |
232 | 254 | android:layout_height="wrap_content" |
233 | | - android:layout_marginTop="16dp" |
234 | 255 | android:checked="true" |
235 | 256 | 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"/> |
236 | 264 | </LinearLayout> |
237 | 265 | </ScrollView> |
238 | 266 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments