|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- |
| 3 | + Copyright 2024 The Android Open Source Project |
| 4 | +
|
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + you may not use this file except in compliance with the License. |
| 7 | + You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License. |
| 16 | + --> |
| 17 | + |
| 18 | +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 20 | + android:layout_width="match_parent" |
| 21 | + android:layout_height="match_parent" |
| 22 | + android:layout_gravity="center_vertical"> |
| 23 | + <LinearLayout |
| 24 | + android:layout_width="match_parent" |
| 25 | + android:layout_height="wrap_content" |
| 26 | + android:paddingTop="8dp" |
| 27 | + android:paddingHorizontal="8dp" |
| 28 | + android:gravity="center_horizontal" |
| 29 | + android:orientation="vertical"> |
| 30 | + <TextView |
| 31 | + android:layout_width="wrap_content" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:paddingTop="16dp" |
| 34 | + android:paddingBottom="8dp" |
| 35 | + android:text="@string/cat_icon_only" |
| 36 | + android:textAppearance="?attr/textAppearanceSubtitle1"/> |
| 37 | + <com.google.android.material.button.MaterialButtonGroup |
| 38 | + android:layout_width="match_parent" |
| 39 | + android:layout_height="wrap_content" |
| 40 | + android:gravity="center_horizontal" |
| 41 | + android:spacing="0dp"> |
| 42 | + <Button |
| 43 | + style="?attr/materialIconButtonFilledTonalStyle" |
| 44 | + android:layout_width="wrap_content" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:contentDescription="@string/cat_icon_button_label_paint_bucket" |
| 47 | + app:icon="@drawable/ic_colors_24px" |
| 48 | + app:iconPadding="0dp"/> |
| 49 | + <Button |
| 50 | + style="?attr/materialIconButtonFilledTonalStyle" |
| 51 | + android:layout_width="wrap_content" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:contentDescription="@string/cat_icon_button_label_plus" |
| 54 | + app:icon="@drawable/ic_fab_24px" |
| 55 | + app:iconPadding="0dp"/> |
| 56 | + <Button |
| 57 | + style="?attr/materialIconButtonFilledTonalStyle" |
| 58 | + android:layout_width="wrap_content" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:contentDescription="@string/cat_icon_button_label_components" |
| 61 | + app:icon="@drawable/ic_components_24px" |
| 62 | + app:iconPadding="0dp"/> |
| 63 | + <Button |
| 64 | + style="?attr/materialIconButtonFilledTonalStyle" |
| 65 | + android:layout_width="wrap_content" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + android:contentDescription="@string/cat_icon_button_label_accelerator" |
| 68 | + app:icon="@drawable/ic_accelerator_24px" |
| 69 | + app:iconPadding="0dp"/> |
| 70 | + <Button |
| 71 | + style="?attr/materialIconButtonFilledTonalStyle" |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:contentDescription="@string/cat_icon_button_label_dialog" |
| 75 | + app:icon="@drawable/ic_dialogs_24px" |
| 76 | + app:iconPadding="0dp"/> |
| 77 | + </com.google.android.material.button.MaterialButtonGroup> |
| 78 | + <TextView |
| 79 | + android:layout_width="wrap_content" |
| 80 | + android:layout_height="wrap_content" |
| 81 | + android:paddingTop="16dp" |
| 82 | + android:paddingBottom="8dp" |
| 83 | + android:text="@string/cat_label_only" |
| 84 | + android:textAppearance="?attr/textAppearanceSubtitle1"/> |
| 85 | + <com.google.android.material.button.MaterialButtonGroup |
| 86 | + android:layout_width="wrap_content" |
| 87 | + android:layout_height="wrap_content" |
| 88 | + android:gravity="center_horizontal" |
| 89 | + android:spacing="8dp"> |
| 90 | + <Button |
| 91 | + android:layout_width="wrap_content" |
| 92 | + android:layout_height="wrap_content" |
| 93 | + android:text="@string/cat_button_label_cheese"/> |
| 94 | + <Button |
| 95 | + android:layout_width="wrap_content" |
| 96 | + android:layout_height="wrap_content" |
| 97 | + android:text="@string/cat_button_label_tomatoes"/> |
| 98 | + <Button |
| 99 | + android:layout_width="wrap_content" |
| 100 | + android:layout_height="wrap_content" |
| 101 | + android:text="@string/cat_button_label_mushrooms"/> |
| 102 | + </com.google.android.material.button.MaterialButtonGroup> |
| 103 | + <TextView |
| 104 | + android:layout_width="wrap_content" |
| 105 | + android:layout_height="wrap_content" |
| 106 | + android:paddingTop="16dp" |
| 107 | + android:paddingBottom="8dp" |
| 108 | + android:text="@string/cat_icon_and_label_mixed" |
| 109 | + android:textAppearance="?attr/textAppearanceSubtitle1"/> |
| 110 | + <com.google.android.material.button.MaterialButtonGroup |
| 111 | + android:layout_width="wrap_content" |
| 112 | + android:layout_height="wrap_content" |
| 113 | + android:spacing="0dp"> |
| 114 | + <Button |
| 115 | + style="?attr/materialIconButtonOutlinedStyle" |
| 116 | + android:layout_width="wrap_content" |
| 117 | + android:layout_height="wrap_content" |
| 118 | + android:contentDescription="@string/cat_icon_button_label_paint_bucket" |
| 119 | + app:icon="@drawable/ic_colors_24px" |
| 120 | + app:iconPadding="0dp"/> |
| 121 | + <Button |
| 122 | + style="?attr/materialIconButtonOutlinedStyle" |
| 123 | + android:layout_width="wrap_content" |
| 124 | + android:layout_height="wrap_content" |
| 125 | + android:contentDescription="@string/cat_icon_button_label_plus" |
| 126 | + app:icon="@drawable/ic_fab_24px" |
| 127 | + app:iconPadding="0dp"/> |
| 128 | + <Button |
| 129 | + style="?attr/materialIconButtonOutlinedStyle" |
| 130 | + android:layout_width="wrap_content" |
| 131 | + android:layout_height="wrap_content" |
| 132 | + android:contentDescription="@string/cat_icon_button_label_components" |
| 133 | + app:icon="@drawable/ic_components_24px" |
| 134 | + app:iconPadding="0dp" |
| 135 | + android:text="@string/cat_button_label_custom"/> |
| 136 | + <Button |
| 137 | + style="?attr/materialIconButtonOutlinedStyle" |
| 138 | + android:layout_width="wrap_content" |
| 139 | + android:layout_height="wrap_content" |
| 140 | + android:contentDescription="@string/cat_icon_button_label_accelerator" |
| 141 | + app:icon="@drawable/ic_accelerator_24px" |
| 142 | + app:iconPadding="0dp"/> |
| 143 | + <Button |
| 144 | + style="?attr/materialIconButtonOutlinedStyle" |
| 145 | + android:layout_width="wrap_content" |
| 146 | + android:layout_height="wrap_content" |
| 147 | + android:contentDescription="@string/cat_icon_button_label_dialog" |
| 148 | + app:icon="@drawable/ic_dialogs_24px" |
| 149 | + app:iconPadding="0dp"/> |
| 150 | + </com.google.android.material.button.MaterialButtonGroup> |
| 151 | + |
| 152 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 153 | + android:id="@+id/orientation_switch_toggle" |
| 154 | + android:paddingTop="16dp" |
| 155 | + android:layout_width="wrap_content" |
| 156 | + android:layout_height="match_parent" |
| 157 | + android:layout_gravity="center" |
| 158 | + android:checked="false" |
| 159 | + android:enabled="true" |
| 160 | + android:text="@string/cat_button_vertical_orientation" /> |
| 161 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 162 | + android:id="@+id/switch_enable" |
| 163 | + android:paddingTop="16dp" |
| 164 | + android:layout_width="wrap_content" |
| 165 | + android:layout_height="match_parent" |
| 166 | + android:layout_gravity="center" |
| 167 | + android:checked="true" |
| 168 | + android:enabled="true" |
| 169 | + android:text="@string/cat_button_enable" /> |
| 170 | + </LinearLayout> |
| 171 | +</ScrollView> |
0 commit comments