|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- |
| 3 | + Copyright 2025 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 | +<LinearLayout 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:paddingTop="8dp" |
| 23 | + android:paddingHorizontal="8dp" |
| 24 | + android:gravity="center_horizontal" |
| 25 | + android:orientation="vertical"> |
| 26 | + <TextView |
| 27 | + android:layout_width="wrap_content" |
| 28 | + android:layout_height="wrap_content" |
| 29 | + android:text="@string/cat_buttons_fixed_width_text"/> |
| 30 | + <com.google.android.material.button.MaterialButtonGroup |
| 31 | + android:layout_width="match_parent" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:paddingBottom="8dp" |
| 34 | + android:gravity="center_horizontal" |
| 35 | + android:spacing="4dp"> |
| 36 | + <Button |
| 37 | + style="?attr/materialIconButtonFilledStyle" |
| 38 | + android:layout_width="wrap_content" |
| 39 | + android:layout_height="wrap_content" |
| 40 | + android:contentDescription="@string/cat_button_previous_icon" |
| 41 | + android:gravity="center" |
| 42 | + app:iconGravity="textStart" |
| 43 | + app:icon="@drawable/cat_button_previous_icon"/> |
| 44 | + <Button |
| 45 | + style="?attr/materialIconButtonFilledStyle" |
| 46 | + android:layout_width="wrap_content" |
| 47 | + android:layout_height="wrap_content" |
| 48 | + android:contentDescription="@string/cat_button_play_icon" |
| 49 | + android:gravity="center" |
| 50 | + app:iconGravity="textStart" |
| 51 | + app:icon="@drawable/cat_button_play_icon"/> |
| 52 | + <Button |
| 53 | + style="?attr/materialIconButtonFilledStyle" |
| 54 | + android:layout_width="wrap_content" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:contentDescription="@string/cat_button_next_icon" |
| 57 | + android:gravity="center" |
| 58 | + app:iconGravity="textStart" |
| 59 | + app:icon="@drawable/cat_button_next_icon"/> |
| 60 | + </com.google.android.material.button.MaterialButtonGroup> |
| 61 | + <TextView |
| 62 | + android:layout_width="wrap_content" |
| 63 | + android:layout_height="wrap_content" |
| 64 | + android:text="@string/cat_buttons_dynamic_width"/> |
| 65 | + <com.google.android.material.button.MaterialButtonGroup |
| 66 | + android:layout_width="match_parent" |
| 67 | + android:layout_height="wrap_content" |
| 68 | + android:paddingBottom="8dp" |
| 69 | + android:gravity="center_horizontal" |
| 70 | + android:spacing="4dp"> |
| 71 | + <Button |
| 72 | + style="?attr/materialIconButtonFilledStyle" |
| 73 | + android:layout_width="0dp" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:layout_weight="1" |
| 76 | + android:contentDescription="@string/cat_button_previous_icon" |
| 77 | + android:gravity="center" |
| 78 | + app:iconGravity="textStart" |
| 79 | + app:icon="@drawable/cat_button_previous_icon"/> |
| 80 | + <Button |
| 81 | + style="?attr/materialIconButtonFilledStyle" |
| 82 | + android:layout_width="0dp" |
| 83 | + android:layout_height="wrap_content" |
| 84 | + android:layout_weight="2" |
| 85 | + android:contentDescription="@string/cat_button_play_icon" |
| 86 | + android:gravity="center" |
| 87 | + app:iconGravity="textStart" |
| 88 | + app:icon="@drawable/cat_button_play_icon"/> |
| 89 | + <Button |
| 90 | + style="?attr/materialIconButtonFilledStyle" |
| 91 | + android:layout_width="0dp" |
| 92 | + android:layout_height="wrap_content" |
| 93 | + android:layout_weight="1" |
| 94 | + android:contentDescription="@string/cat_button_next_icon" |
| 95 | + android:gravity="center" |
| 96 | + app:iconGravity="textStart" |
| 97 | + app:icon="@drawable/cat_button_next_icon"/> |
| 98 | + </com.google.android.material.button.MaterialButtonGroup> |
| 99 | + <TextView |
| 100 | + android:layout_width="wrap_content" |
| 101 | + android:layout_height="wrap_content" |
| 102 | + android:text="@string/cat_buttons_mixed_width"/> |
| 103 | + <com.google.android.material.button.MaterialButtonGroup |
| 104 | + android:layout_width="match_parent" |
| 105 | + android:layout_height="wrap_content" |
| 106 | + android:paddingBottom="8dp" |
| 107 | + android:gravity="center_horizontal" |
| 108 | + android:spacing="4dp"> |
| 109 | + <Button |
| 110 | + style="?attr/materialIconButtonFilledStyle" |
| 111 | + android:layout_width="wrap_content" |
| 112 | + android:layout_height="wrap_content" |
| 113 | + android:contentDescription="@string/cat_button_previous_icon" |
| 114 | + android:gravity="center" |
| 115 | + app:iconGravity="textStart" |
| 116 | + app:icon="@drawable/cat_button_previous_icon"/> |
| 117 | + <Button |
| 118 | + style="?attr/materialIconButtonFilledStyle" |
| 119 | + android:layout_width="0dp" |
| 120 | + android:layout_height="wrap_content" |
| 121 | + android:layout_weight="2" |
| 122 | + android:contentDescription="@string/cat_button_play_icon" |
| 123 | + android:gravity="center" |
| 124 | + app:iconGravity="textStart" |
| 125 | + app:icon="@drawable/cat_button_play_icon"/> |
| 126 | + <Button |
| 127 | + style="?attr/materialIconButtonFilledStyle" |
| 128 | + android:layout_width="wrap_content" |
| 129 | + android:layout_height="wrap_content" |
| 130 | + android:contentDescription="@string/cat_button_next_icon" |
| 131 | + android:gravity="center" |
| 132 | + app:iconGravity="textStart" |
| 133 | + app:icon="@drawable/cat_button_next_icon"/> |
| 134 | + </com.google.android.material.button.MaterialButtonGroup> |
| 135 | +</LinearLayout> |
0 commit comments