1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2015 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    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    xmlns:app="http://schemas.android.com/apk/res-auto">
22
23    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24                  android:layout_width="match_parent"
25                  android:layout_height="wrap_content"
26                  android:orientation="vertical"
27                  android:padding="16dp">
28
29        <androidx.appcompat.widget.SwitchCompat
30                android:layout_height="wrap_content"
31                android:layout_width="wrap_content"
32                android:text="SwitchCompat"/>
33
34        <androidx.appcompat.widget.SwitchCompat
35                android:layout_height="wrap_content"
36                android:layout_width="wrap_content"
37                android:enabled="false"
38                android:text="SwitchCompat disabled"/>
39
40        <Switch
41                android:layout_height="wrap_content"
42                android:layout_width="wrap_content"
43                android:text="Switch"/>
44
45        <Switch
46                android:layout_height="wrap_content"
47                android:layout_width="wrap_content"
48                android:enabled="false"
49                android:text="Switch disabled"/>
50
51        <CheckBox
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:text="CheckBox"/>
55
56        <RadioGroup
57                android:layout_width="match_parent"
58                android:layout_height="wrap_content"
59                android:orientation="horizontal">
60
61            <RadioButton
62                    android:id="@+id/radiobutton_1"
63                    android:layout_width="wrap_content"
64                    android:layout_height="wrap_content"
65                    android:text="RadioButton"/>
66
67            <RadioButton
68                    android:id="@+id/radiobutton_2"
69                    android:layout_width="wrap_content"
70                    android:layout_height="wrap_content"
71                    android:text="RadioButton"/>
72
73        </RadioGroup>
74
75        <Button
76            android:layout_width="wrap_content"
77            android:layout_height="wrap_content"
78            android:text="Button"/>
79
80        <Button
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:enabled="false"
84            android:text="Button disabled"/>
85
86        <Button
87            android:layout_width="wrap_content"
88            android:layout_height="wrap_content"
89            android:text="Button (small)"
90            style="@style/Widget.AppCompat.Button.Small"/>
91
92        <Button
93            android:layout_width="wrap_content"
94            android:layout_height="wrap_content"
95            android:enabled="false"
96            android:text="Button (small) disabled"
97            style="@style/Widget.AppCompat.Button.Small"/>
98
99        <Button
100            android:layout_width="wrap_content"
101            android:layout_height="wrap_content"
102            android:text="Button (borderless)"
103            style="@style/Widget.AppCompat.Button.Borderless"/>
104
105        <Button
106            android:layout_width="wrap_content"
107            android:layout_height="wrap_content"
108            android:enabled="false"
109            android:text="Button (borderless) disabled"
110            style="@style/Widget.AppCompat.Button.Borderless"/>
111
112        <Button
113            android:layout_width="wrap_content"
114            android:layout_height="wrap_content"
115            android:text="Button (borderless + colored)"
116            style="@style/Widget.AppCompat.Button.Borderless.Colored"/>
117
118        <Button
119            android:layout_width="wrap_content"
120            android:layout_height="wrap_content"
121            android:enabled="false"
122            android:text="Button (borderless + colored) disabled"
123            style="@style/Widget.AppCompat.Button.Borderless.Colored"/>
124
125        <Button
126            android:layout_width="wrap_content"
127            android:layout_height="wrap_content"
128            android:text="Button (colored)"
129            style="@style/Widget.AppCompat.Button.Colored"/>
130
131        <Button
132            android:layout_width="wrap_content"
133            android:layout_height="wrap_content"
134            android:enabled="false"
135            android:text="Button (colored) disabled"
136            style="@style/Widget.AppCompat.Button.Colored"/>
137
138        <Button
139            android:layout_width="wrap_content"
140            android:layout_height="wrap_content"
141            android:text="Button (colored + tinted)"
142            app:backgroundTint="#00FF00"
143            style="@style/Widget.AppCompat.Button.Colored"/>
144
145        <Button
146            android:layout_width="wrap_content"
147            android:layout_height="wrap_content"
148            android:enabled="false"
149            android:text="Button (colored + tinted) disabled"
150            app:backgroundTint="#00FF00"
151            style="@style/Widget.AppCompat.Button.Colored"/>
152
153        <RatingBar
154                android:layout_width="wrap_content"
155                android:layout_height="wrap_content"/>
156
157    </LinearLayout>
158
159</ScrollView>