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
35    <ScrollView
36        android:id="@+id/text_sample_list"
37        android:layout_width="0dp"
38        android:layout_height="0dp"
39        android:layout_marginBottom="8dp"
40        android:layout_marginEnd="8dp"
41        android:layout_marginStart="8dp"
42        android:layout_marginTop="8dp"
43        app:layout_constraintBottom_toBottomOf="parent"
44        app:layout_constraintEnd_toEndOf="parent"
45        app:layout_constraintStart_toStartOf="parent"
46        app:layout_constraintTop_toBottomOf="@id/setBackground">
47
48        <LinearLayout
49            android:layout_width="match_parent"
50            android:layout_height="wrap_content"
51            android:orientation="vertical">
52
53            <LinearLayout
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content"
56                android:orientation="horizontal">
57
58                <ProgressBar
59                    style="@android:style/Widget.DeviceDefault.ProgressBar"
60                    android:layout_gravity="center_vertical"
61                    android:layout_width="wrap_content"
62                    android:layout_height="wrap_content"/>
63
64                <TextView
65                    android:layout_width="wrap_content"
66                    android:layout_height="wrap_content"
67                    android:layout_gravity="center_vertical"
68                    android:text="Widget.DeviceDefault.ProgressBar"/>
69
70            </LinearLayout>
71
72            <LinearLayout
73                android:layout_width="match_parent"
74                android:layout_height="wrap_content"
75                android:orientation="horizontal">
76
77                <ProgressBar
78                    style="@android:style/Widget.DeviceDefault.ProgressBar.Horizontal"
79                    android:layout_gravity="center_vertical"
80                    android:layout_width="wrap_content"
81                    android:layout_height="wrap_content"/>
82
83                <TextView
84                    android:layout_width="wrap_content"
85                    android:layout_height="wrap_content"
86                    android:layout_gravity="center_vertical"
87                    android:text="Widget.DeviceDefault.ProgressBar.Horizontal"/>
88
89            </LinearLayout>
90
91            <LinearLayout
92                android:layout_width="match_parent"
93                android:layout_height="wrap_content"
94                android:orientation="horizontal">
95
96                <ProgressBar
97                    style="@android:style/Widget.DeviceDefault.ProgressBar.Small"
98                    android:layout_gravity="center_vertical"
99                    android:layout_width="wrap_content"
100                    android:layout_height="wrap_content"/>
101
102                <TextView
103                    android:layout_width="wrap_content"
104                    android:layout_height="wrap_content"
105                    android:layout_gravity="center_vertical"
106                    android:text="Widget.DeviceDefault.ProgressBar.Small"/>
107
108            </LinearLayout>
109
110            <LinearLayout
111                android:layout_width="match_parent"
112                android:layout_height="wrap_content"
113                android:orientation="horizontal">
114
115                <ProgressBar
116                    style="@android:style/Widget.DeviceDefault.ProgressBar.Small.Title"
117                    android:layout_gravity="center_vertical"
118                    android:layout_width="wrap_content"
119                    android:layout_height="wrap_content"/>
120
121                <TextView
122                    android:layout_width="wrap_content"
123                    android:layout_height="wrap_content"
124                    android:layout_gravity="center_vertical"
125                    android:text="Widget.DeviceDefault.ProgressBar.Small.Title"/>
126
127            </LinearLayout>
128
129            <LinearLayout
130                android:layout_width="match_parent"
131                android:layout_height="wrap_content"
132                android:orientation="horizontal">
133
134                <ProgressBar
135                    style="@android:style/Widget.DeviceDefault.ProgressBar.Large"
136                    android:layout_gravity="center_vertical"
137                    android:layout_width="wrap_content"
138                    android:layout_height="wrap_content"/>
139
140                <TextView
141                    android:layout_width="wrap_content"
142                    android:layout_height="wrap_content"
143                    android:layout_gravity="center_vertical"
144                    android:text="Widget.DeviceDefault.ProgressBar.Large"/>
145
146            </LinearLayout>
147
148            <LinearLayout
149                android:layout_width="match_parent"
150                android:layout_height="wrap_content"
151                android:orientation="horizontal">
152
153                <Spinner
154                    android:layout_gravity="center_vertical"
155                    android:layout_width="wrap_content"
156                    android:layout_height="wrap_content"
157                    style="@android;style/Widget.DeviceDefault.Spinner"/>
158
159                <TextView
160                    android:layout_width="wrap_content"
161                    android:layout_height="wrap_content"
162                    android:layout_gravity="center_vertical"
163                    android:text="Widget.DeviceDefault.Spinner"/>
164
165            </LinearLayout>
166
167        </LinearLayout>
168    </ScrollView>
169    <include layout="@layout/menu_button"/>
170
171</androidx.constraintlayout.widget.ConstraintLayout>