|
16 | 16 | limitations under the License. |
17 | 17 | --> |
18 | 18 |
|
19 | | -<LinearLayout |
20 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | +<ScrollView |
| 20 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | + android:layout_width="match_parent" |
| 22 | + android:layout_height="match_parent"> |
| 23 | + |
| 24 | + <LinearLayout |
21 | 25 | android:id="@+id/main_viewGroup" |
22 | 26 | android:layout_width="match_parent" |
23 | 27 | android:layout_height="wrap_content" |
24 | | - android:padding="@dimen/cat_checkbox_padding" |
25 | | - android:orientation="vertical"> |
26 | | - <GridLayout |
| 28 | + android:orientation="vertical" |
| 29 | + android:padding="@dimen/cat_checkbox_padding"> |
| 30 | + |
| 31 | + <GridLayout |
27 | 32 | android:layout_width="wrap_content" |
28 | 33 | android:layout_height="wrap_content" |
29 | 34 | android:columnCount="2" |
30 | 35 | android:useDefaultMargins="true"> |
31 | | - <TextView |
| 36 | + |
| 37 | + <TextView |
32 | 38 | android:layout_width="match_parent" |
33 | 39 | android:layout_height="match_parent" |
34 | 40 | android:layout_columnSpan="2" |
35 | 41 | android:text="@string/cat_checkbox_intro" /> |
36 | | - <CheckBox |
| 42 | + |
| 43 | + <CheckBox |
37 | 44 | android:layout_width="match_parent" |
38 | 45 | android:layout_height="match_parent" |
39 | 46 | android:checked="true" |
40 | 47 | android:enabled="true" |
41 | | - android:text="@string/cat_checkbox_enabled"/> |
42 | | - <CheckBox |
| 48 | + android:text="@string/cat_checkbox_enabled" /> |
| 49 | + |
| 50 | + <CheckBox |
43 | 51 | android:layout_width="match_parent" |
44 | 52 | android:layout_height="match_parent" |
45 | 53 | android:checked="false" |
46 | 54 | android:enabled="true" |
47 | | - android:text="@string/cat_checkbox_enabled"/> |
48 | | - <TextView |
| 55 | + android:text="@string/cat_checkbox_enabled" /> |
| 56 | + |
| 57 | + <TextView |
49 | 58 | android:layout_width="match_parent" |
50 | 59 | android:layout_height="match_parent" |
51 | 60 | android:layout_columnSpan="2" |
52 | 61 | android:text="@string/cat_checkbox_disabled_guide" /> |
53 | | - <CheckBox |
| 62 | + |
| 63 | + <CheckBox |
54 | 64 | android:layout_width="match_parent" |
55 | 65 | android:layout_height="match_parent" |
56 | 66 | android:checked="true" |
57 | 67 | android:enabled="false" |
58 | | - android:text="@string/cat_checkbox_disabled"/> |
59 | | - <CheckBox |
| 68 | + android:text="@string/cat_checkbox_disabled" /> |
| 69 | + |
| 70 | + <CheckBox |
60 | 71 | android:layout_width="match_parent" |
61 | 72 | android:layout_height="match_parent" |
62 | 73 | android:checked="false" |
63 | 74 | android:enabled="false" |
64 | | - android:text="@string/cat_checkbox_disabled"/> |
65 | | - </GridLayout> |
| 75 | + android:text="@string/cat_checkbox_disabled" /> |
| 76 | + </GridLayout> |
66 | 77 |
|
67 | | - <com.google.android.material.divider.MaterialDivider |
68 | | - android:layout_width="match_parent" |
69 | | - android:layout_height="wrap_content" |
70 | | - android:layout_marginTop="@dimen/cat_checkbox_line_separator_margin" |
71 | | - android:layout_marginBottom="@dimen/cat_checkbox_line_separator_margin"/> |
| 78 | + <com.google.android.material.divider.MaterialDivider |
| 79 | + android:layout_width="match_parent" |
| 80 | + android:layout_height="wrap_content" |
| 81 | + android:layout_marginTop="@dimen/cat_checkbox_line_separator_margin" |
| 82 | + android:layout_marginBottom="@dimen/cat_checkbox_line_separator_margin" /> |
72 | 83 |
|
73 | | - <CheckBox |
| 84 | + <CheckBox |
74 | 85 | android:id="@+id/checkbox_toggle" |
75 | 86 | android:layout_width="match_parent" |
76 | 87 | android:layout_height="match_parent" |
77 | 88 | android:checked="false" |
78 | 89 | android:enabled="true" |
79 | | - android:text="@string/cat_checkbox_enablable_description"/> |
80 | | - <LinearLayout |
81 | | - android:id="@+id/checkbox_toggle_container" |
82 | | - android:layout_width="match_parent" |
83 | | - android:layout_height="wrap_content" |
84 | | - android:layout_marginStart="@dimen/cat_checkbox_indent" |
85 | | - android:orientation="vertical"> |
| 90 | + android:text="@string/cat_checkbox_enablable_description" /> |
| 91 | + |
| 92 | + <LinearLayout |
| 93 | + android:id="@+id/checkbox_toggle_container" |
| 94 | + android:layout_width="match_parent" |
| 95 | + android:layout_height="wrap_content" |
| 96 | + android:layout_marginStart="@dimen/cat_checkbox_indent" |
| 97 | + android:orientation="vertical"> |
| 98 | + |
| 99 | + <CheckBox |
| 100 | + android:layout_width="match_parent" |
| 101 | + android:layout_height="match_parent" |
| 102 | + android:checked="true" |
| 103 | + android:enabled="false" |
| 104 | + android:text="@string/cat_checkbox_toggle" /> |
| 105 | + |
| 106 | + <CheckBox |
| 107 | + android:layout_width="match_parent" |
| 108 | + android:layout_height="match_parent" |
| 109 | + android:checked="false" |
| 110 | + android:enabled="false" |
| 111 | + android:text="@string/cat_checkbox_toggle" /> |
| 112 | + </LinearLayout> |
| 113 | + |
| 114 | + <com.google.android.material.divider.MaterialDivider |
| 115 | + android:layout_width="match_parent" |
| 116 | + android:layout_height="wrap_content" |
| 117 | + android:layout_marginTop="@dimen/cat_checkbox_line_separator_margin" |
| 118 | + android:layout_marginBottom="@dimen/cat_checkbox_line_separator_margin" /> |
| 119 | + |
| 120 | + <TextView |
| 121 | + android:layout_width="match_parent" |
| 122 | + android:layout_height="wrap_content" |
| 123 | + android:text="@string/cat_checkbox_no_text" /> |
| 124 | + |
86 | 125 | <CheckBox |
| 126 | + android:layout_width="wrap_content" |
| 127 | + android:layout_height="wrap_content" /> |
| 128 | + |
| 129 | + <com.google.android.material.divider.MaterialDivider |
87 | 130 | android:layout_width="match_parent" |
88 | | - android:layout_height="match_parent" |
89 | | - android:checked="true" |
90 | | - android:enabled="false" |
91 | | - android:text="@string/cat_checkbox_toggle"/> |
| 131 | + android:layout_height="wrap_content" |
| 132 | + android:layout_marginTop="@dimen/cat_checkbox_line_separator_margin" |
| 133 | + android:layout_marginBottom="@dimen/cat_checkbox_line_separator_margin" /> |
| 134 | + |
92 | 135 | <CheckBox |
| 136 | + android:id="@+id/checkbox_toggle_error" |
93 | 137 | android:layout_width="match_parent" |
94 | 138 | android:layout_height="match_parent" |
95 | | - android:checked="false" |
96 | | - android:enabled="false" |
97 | | - android:text="@string/cat_checkbox_toggle"/> |
| 139 | + android:text="@string/cat_checkbox_toggle_error" /> |
98 | 140 | </LinearLayout> |
99 | 141 |
|
100 | | - <com.google.android.material.divider.MaterialDivider |
101 | | - android:layout_width="match_parent" |
102 | | - android:layout_height="wrap_content" |
103 | | - android:layout_marginTop="@dimen/cat_checkbox_line_separator_margin" |
104 | | - android:layout_marginBottom="@dimen/cat_checkbox_line_separator_margin"/> |
105 | | - |
106 | | - <TextView |
107 | | - android:layout_width="match_parent" |
108 | | - android:layout_height="wrap_content" |
109 | | - android:text="@string/cat_checkbox_no_text"/> |
110 | | - <CheckBox |
111 | | - android:layout_width="wrap_content" |
112 | | - android:layout_height="wrap_content"/> |
113 | | - |
114 | | - <com.google.android.material.divider.MaterialDivider |
115 | | - android:layout_width="match_parent" |
116 | | - android:layout_height="wrap_content" |
117 | | - android:layout_marginTop="@dimen/cat_checkbox_line_separator_margin" |
118 | | - android:layout_marginBottom="@dimen/cat_checkbox_line_separator_margin"/> |
119 | | - |
120 | | - <CheckBox |
121 | | - android:id="@+id/checkbox_toggle_error" |
122 | | - android:layout_width="match_parent" |
123 | | - android:layout_height="match_parent" |
124 | | - android:text="@string/cat_checkbox_toggle_error"/> |
125 | | -</LinearLayout> |
| 142 | +</ScrollView> |
0 commit comments