|
18 | 18 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
19 | 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
20 | 20 | android:layout_width="match_parent" |
21 | | - android:layout_height="match_parent" |
22 | | - android:layout_gravity="center_vertical"> |
| 21 | + android:layout_height="match_parent"> |
23 | 22 |
|
24 | 23 | <LinearLayout |
25 | 24 | android:layout_width="match_parent" |
26 | 25 | android:layout_height="wrap_content" |
27 | 26 | android:paddingTop="8dp" |
28 | | - android:gravity="center_horizontal" |
| 27 | + android:paddingLeft="8dp" |
| 28 | + android:paddingRight="8dp" |
29 | 29 | android:orientation="vertical"> |
30 | 30 | <TextView |
31 | 31 | android:layout_width="wrap_content" |
|
36 | 36 | android:textAppearance="?attr/textAppearanceSubtitle1"/> |
37 | 37 |
|
38 | 38 | <com.google.android.material.button.MaterialButtonToggleGroup |
39 | | - android:layout_width="wrap_content" |
| 39 | + android:layout_width="match_parent" |
40 | 40 | android:layout_height="wrap_content" |
41 | | - app:singleSelection="true"> |
| 41 | + app:singleSelection="true" |
| 42 | + app:overflowMode="wrap"> |
42 | 43 |
|
43 | 44 | <Button |
44 | | - style="?attr/materialButtonOutlinedStyle" |
45 | | - android:layout_width="wrap_content" |
46 | | - android:layout_height="wrap_content" |
47 | | - android:text="@string/cat_button_label_private" /> |
| 45 | + style="?attr/materialButtonOutlinedStyle" |
| 46 | + android:layout_width="wrap_content" |
| 47 | + android:layout_height="wrap_content" |
| 48 | + android:layout_gravity="start|top" |
| 49 | + android:text="@string/cat_button_label_private" /> |
48 | 50 |
|
49 | 51 | <Button |
50 | | - style="?attr/materialButtonOutlinedStyle" |
51 | | - android:layout_width="wrap_content" |
52 | | - android:layout_height="wrap_content" |
53 | | - android:text="@string/cat_button_label_team" /> |
| 52 | + style="?attr/materialButtonOutlinedStyle" |
| 53 | + android:layout_width="wrap_content" |
| 54 | + android:layout_height="wrap_content" |
| 55 | + android:layout_gravity="start|top" |
| 56 | + android:text="@string/cat_button_label_team" /> |
54 | 57 |
|
55 | 58 | <Button |
56 | | - style="?attr/materialButtonOutlinedStyle" |
57 | | - android:layout_width="wrap_content" |
58 | | - android:layout_height="wrap_content" |
59 | | - android:text="@string/cat_button_label_everyone" /> |
| 59 | + style="?attr/materialButtonOutlinedStyle" |
| 60 | + android:layout_width="wrap_content" |
| 61 | + android:layout_height="wrap_content" |
| 62 | + android:layout_gravity="start|top" |
| 63 | + android:text="@string/cat_button_label_everyone" /> |
60 | 64 |
|
61 | 65 | <Button |
62 | | - style="?attr/materialButtonOutlinedStyle" |
63 | | - android:layout_width="wrap_content" |
64 | | - android:layout_height="wrap_content" |
65 | | - android:text="@string/cat_button_label_custom" /> |
| 66 | + style="?attr/materialButtonOutlinedStyle" |
| 67 | + android:layout_width="wrap_content" |
| 68 | + android:layout_height="wrap_content" |
| 69 | + android:layout_gravity="start|top" |
| 70 | + android:text="@string/cat_button_label_custom" /> |
66 | 71 | </com.google.android.material.button.MaterialButtonToggleGroup> |
67 | 72 |
|
68 | 73 | <TextView |
|
74 | 79 | android:textAppearance="?attr/textAppearanceSubtitle1"/> |
75 | 80 |
|
76 | 81 | <com.google.android.material.button.MaterialButtonToggleGroup |
77 | | - android:layout_width="wrap_content" |
78 | | - android:layout_height="wrap_content"> |
| 82 | + android:layout_width="match_parent" |
| 83 | + android:layout_height="wrap_content" |
| 84 | + app:overflowMode="wrap"> |
79 | 85 | <Button |
80 | | - style="?attr/materialButtonOutlinedStyle" |
81 | | - android:layout_width="0dp" |
82 | | - android:layout_height="wrap_content" |
83 | | - android:layout_weight="1" |
84 | | - android:text="@string/cat_button_label_cheese" /> |
| 86 | + style="?attr/materialButtonOutlinedStyle" |
| 87 | + android:layout_width="wrap_content" |
| 88 | + android:layout_height="wrap_content" |
| 89 | + android:layout_gravity="start|top" |
| 90 | + android:text="@string/cat_button_label_cheese" /> |
85 | 91 | <Button |
86 | | - style="?attr/materialButtonOutlinedStyle" |
87 | | - android:layout_width="0dp" |
88 | | - android:layout_height="wrap_content" |
89 | | - android:layout_weight="1" |
90 | | - android:text="@string/cat_button_label_tomatoes" /> |
| 92 | + style="?attr/materialButtonOutlinedStyle" |
| 93 | + android:layout_width="wrap_content" |
| 94 | + android:layout_height="wrap_content" |
| 95 | + android:layout_gravity="start|top" |
| 96 | + android:text="@string/cat_button_label_tomatoes" /> |
91 | 97 | <Button |
92 | | - style="?attr/materialButtonOutlinedStyle" |
93 | | - android:layout_width="0dp" |
94 | | - android:layout_height="wrap_content" |
95 | | - android:layout_weight="1" |
96 | | - android:text="@string/cat_button_label_mushrooms" /> |
| 98 | + style="?attr/materialButtonOutlinedStyle" |
| 99 | + android:layout_width="wrap_content" |
| 100 | + android:layout_height="wrap_content" |
| 101 | + android:layout_gravity="start|top" |
| 102 | + android:text="@string/cat_button_label_mushrooms" /> |
97 | 103 | </com.google.android.material.button.MaterialButtonToggleGroup> |
98 | 104 |
|
99 | 105 | <TextView |
|
106 | 112 |
|
107 | 113 | <com.google.android.material.button.MaterialButtonToggleGroup |
108 | 114 | android:id="@+id/icon_only_group" |
109 | | - android:layout_width="wrap_content" |
110 | | - android:layout_height="wrap_content"> |
| 115 | + android:layout_width="match_parent" |
| 116 | + android:layout_height="wrap_content" |
| 117 | + app:overflowMode="wrap"> |
111 | 118 | <Button |
112 | 119 | style="?attr/materialButtonOutlinedStyle" |
113 | 120 | android:layout_width="wrap_content" |
|
0 commit comments