1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <include layout="@layout/set_background" 25 android:id="@+id/setBackground" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:layout_marginTop="20dp" 29 app:layout_constraintBottom_toTopOf="@+id/text_sample_list" 30 app:layout_constraintEnd_toEndOf="parent" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintTop_toTopOf="parent"/> 33 34 <ScrollView 35 android:id="@+id/text_sample_list" 36 android:layout_width="0dp" 37 android:layout_height="0dp" 38 android:layout_marginBottom="8dp" 39 android:layout_marginEnd="8dp" 40 android:layout_marginStart="8dp" 41 android:layout_marginTop="8dp" 42 app:layout_constraintBottom_toBottomOf="parent" 43 app:layout_constraintEnd_toEndOf="parent" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintTop_toBottomOf="@id/setBackground"> 46 47 <LinearLayout 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:orientation="vertical"> 51 52 <Button 53 android:id="@+id/normal_button" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:padding="8dp" 57 android:text="No style set"/> 58 59 <Button 60 android:id="@+id/small_button" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:padding="8dp" 64 android:text="buttonStyleSmall" 65 style="?android:attr/buttonStyleSmall"/> 66 67 <Button 68 android:id="@+id/button" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:padding="8dp" 72 android:layout_marginBottom="8dp" 73 android:text="buttonStyle" 74 style="?android:attr/buttonStyle"/> 75 76 <Button 77 android:id="@+id/buttonCornerRadius" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:padding="8dp" 81 android:text="buttonCornerRadius" 82 style="?android:attr/buttonCornerRadius"/> 83 84 <Button 85 android:id="@+id/buttonStyleInset" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:padding="8dp" 89 android:text="buttonStyleInset" 90 style="?android:attr/buttonStyleInset"/> 91 92 <Button 93 android:id="@+id/buttonStyleToggle" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:padding="8dp" 97 android:text="buttonStyleToggle" 98 style="?android:attr/buttonStyleToggle"/> 99 100 <Button 101 android:id="@+id/buttonBarButtonStyle" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:padding="8dp" 105 android:text="buttonBarButtonStyle" 106 style="?android:attr/buttonBarButtonStyle"/> 107 108 <Button 109 android:id="@+id/borderlessButtonStyle" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:padding="8dp" 113 android:text="borderlessButtonStyle" 114 style="?android:attr/borderlessButtonStyle"/> 115 116 <Button 117 android:id="@+id/imageButtonStyle" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:padding="8dp" 121 android:text="imageButtonStyle" 122 style="?android:attr/imageButtonStyle"/> 123 124 <Button 125 android:id="@+id/actionButtonStyle" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:padding="8dp" 129 android:text="actionButtonStyle" 130 style="?android:attr/actionButtonStyle"/> 131 132 <Button 133 android:id="@+id/actionOverflowButtonStyle" 134 android:layout_width="wrap_content" 135 android:layout_height="wrap_content" 136 android:padding="8dp" 137 android:text="actionOverflowButtonStyle" 138 style="?android:attr/actionOverflowButtonStyle"/> 139 140 <Button 141 android:id="@+id/actionModeCloseButtonStyle" 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:padding="8dp" 145 android:text="actionModeCloseButtonStyle" 146 style="?android:attr/actionModeCloseButtonStyle"/> 147 148 <Button 149 android:id="@+id/buttonBarStyle" 150 android:layout_width="wrap_content" 151 android:layout_height="wrap_content" 152 android:padding="8dp" 153 android:text="buttonBarStyle" 154 style="?android:attr/buttonBarStyle"/> 155 156 <Button 157 android:id="@+id/segmentedButtonStyle" 158 android:layout_width="wrap_content" 159 android:layout_height="wrap_content" 160 android:padding="8dp" 161 android:text="segmentedButtonStyle" 162 style="?android:attr/segmentedButtonStyle"/> 163 164 <Button 165 android:id="@+id/button-colored" 166 android:layout_width="wrap_content" 167 android:layout_height="wrap_content" 168 android:padding="8dp" 169 android:text="button colored" 170 style="@android:style/Widget.DeviceDefault.Button.Colored"/> 171 172 <Button 173 android:layout_width="wrap_content" 174 android:layout_height="wrap_content" 175 android:padding="8dp" 176 android:text="DeviceDefault.ButtonBar" 177 style="@android:style/DeviceDefault.ButtonBar"/> 178 179 <Button 180 android:layout_width="wrap_content" 181 android:layout_height="wrap_content" 182 android:padding="8dp" 183 android:text="DeviceDefault.ButtonBar.AlertDialog" 184 style="@android:style/DeviceDefault.ButtonBar.AlertDialog"/> 185 186 </LinearLayout> 187 </ScrollView> 188 <include layout="@layout/menu_button"/> 189 190</androidx.constraintlayout.widget.ConstraintLayout>