xref: /aosp_15_r20/development/samples/ApiDemos/res/layout/controls_1.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*90c8c64dSAndroid Build Coastguard Worker<!--
3*90c8c64dSAndroid Build Coastguard Worker     Copyright (C) 2007 The Android Open Source Project
4*90c8c64dSAndroid Build Coastguard Worker
5*90c8c64dSAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
6*90c8c64dSAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
7*90c8c64dSAndroid Build Coastguard Worker     You may obtain a copy of the License at
8*90c8c64dSAndroid Build Coastguard Worker
9*90c8c64dSAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
10*90c8c64dSAndroid Build Coastguard Worker
11*90c8c64dSAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
12*90c8c64dSAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
13*90c8c64dSAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*90c8c64dSAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
15*90c8c64dSAndroid Build Coastguard Worker     limitations under the License.
16*90c8c64dSAndroid Build Coastguard Worker-->
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard Worker<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19*90c8c64dSAndroid Build Coastguard Worker    android:layout_width="match_parent"
20*90c8c64dSAndroid Build Coastguard Worker    android:layout_height="match_parent"
21*90c8c64dSAndroid Build Coastguard Worker    android:orientation="vertical" >
22*90c8c64dSAndroid Build Coastguard Worker
23*90c8c64dSAndroid Build Coastguard Worker    <LinearLayout
24*90c8c64dSAndroid Build Coastguard Worker        android:layout_width="match_parent"
25*90c8c64dSAndroid Build Coastguard Worker        android:layout_height="wrap_content"
26*90c8c64dSAndroid Build Coastguard Worker        android:orientation="vertical" >
27*90c8c64dSAndroid Build Coastguard Worker
28*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout
29*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
30*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
31*90c8c64dSAndroid Build Coastguard Worker            android:orientation="horizontal" >
32*90c8c64dSAndroid Build Coastguard Worker
33*90c8c64dSAndroid Build Coastguard Worker            <Button
34*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/button"
35*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
36*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
37*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/controls_1_save" />
38*90c8c64dSAndroid Build Coastguard Worker
39*90c8c64dSAndroid Build Coastguard Worker            <Button
40*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/button_disabled"
41*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
42*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
43*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/controls_1_save"
44*90c8c64dSAndroid Build Coastguard Worker                android:enabled="false" />
45*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
46*90c8c64dSAndroid Build Coastguard Worker
47*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout
48*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
49*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
50*90c8c64dSAndroid Build Coastguard Worker            android:orientation="horizontal" >
51*90c8c64dSAndroid Build Coastguard Worker
52*90c8c64dSAndroid Build Coastguard Worker            <Switch
53*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
54*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
55*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/controls_1_save" />
56*90c8c64dSAndroid Build Coastguard Worker
57*90c8c64dSAndroid Build Coastguard Worker            <Switch
58*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
59*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
60*90c8c64dSAndroid Build Coastguard Worker                android:enabled="false"
61*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/controls_1_save" />
62*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
63*90c8c64dSAndroid Build Coastguard Worker
64*90c8c64dSAndroid Build Coastguard Worker        <LinearLayout
65*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
66*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
67*90c8c64dSAndroid Build Coastguard Worker            android:orientation="horizontal" >
68*90c8c64dSAndroid Build Coastguard Worker
69*90c8c64dSAndroid Build Coastguard Worker            <EditText
70*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/edit"
71*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="0dp"
72*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
73*90c8c64dSAndroid Build Coastguard Worker                android:layout_weight="1" />
74*90c8c64dSAndroid Build Coastguard Worker
75*90c8c64dSAndroid Build Coastguard Worker            <EditText
76*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/edit2"
77*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="0dp"
78*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
79*90c8c64dSAndroid Build Coastguard Worker                android:layout_weight="1" />
80*90c8c64dSAndroid Build Coastguard Worker        </LinearLayout>
81*90c8c64dSAndroid Build Coastguard Worker
82*90c8c64dSAndroid Build Coastguard Worker        <CheckBox
83*90c8c64dSAndroid Build Coastguard Worker            android:id="@+id/check1"
84*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="wrap_content"
85*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
86*90c8c64dSAndroid Build Coastguard Worker            android:paddingBottom="24sp"
87*90c8c64dSAndroid Build Coastguard Worker            android:paddingTop="24sp"
88*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/controls_1_checkbox_1" />
89*90c8c64dSAndroid Build Coastguard Worker
90*90c8c64dSAndroid Build Coastguard Worker        <CheckBox
91*90c8c64dSAndroid Build Coastguard Worker            android:id="@+id/check2"
92*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="wrap_content"
93*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
94*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/controls_1_checkbox_2" />
95*90c8c64dSAndroid Build Coastguard Worker
96*90c8c64dSAndroid Build Coastguard Worker        <RadioGroup
97*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
98*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
99*90c8c64dSAndroid Build Coastguard Worker            android:orientation="vertical" >
100*90c8c64dSAndroid Build Coastguard Worker
101*90c8c64dSAndroid Build Coastguard Worker            <RadioButton
102*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/radio1"
103*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
104*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
105*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/controls_1_radiobutton_1" />
106*90c8c64dSAndroid Build Coastguard Worker
107*90c8c64dSAndroid Build Coastguard Worker            <RadioButton
108*90c8c64dSAndroid Build Coastguard Worker                android:id="@+id/radio2"
109*90c8c64dSAndroid Build Coastguard Worker                android:layout_width="wrap_content"
110*90c8c64dSAndroid Build Coastguard Worker                android:layout_height="wrap_content"
111*90c8c64dSAndroid Build Coastguard Worker                android:text="@string/controls_1_radiobutton_2" />
112*90c8c64dSAndroid Build Coastguard Worker        </RadioGroup>
113*90c8c64dSAndroid Build Coastguard Worker
114*90c8c64dSAndroid Build Coastguard Worker        <CheckBox
115*90c8c64dSAndroid Build Coastguard Worker            android:id="@+id/star"
116*90c8c64dSAndroid Build Coastguard Worker            style="?android:attr/starStyle"
117*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="wrap_content"
118*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
119*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/controls_1_star" />
120*90c8c64dSAndroid Build Coastguard Worker
121*90c8c64dSAndroid Build Coastguard Worker        <ToggleButton
122*90c8c64dSAndroid Build Coastguard Worker            android:id="@+id/toggle1"
123*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="wrap_content"
124*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content" />
125*90c8c64dSAndroid Build Coastguard Worker
126*90c8c64dSAndroid Build Coastguard Worker        <ToggleButton
127*90c8c64dSAndroid Build Coastguard Worker            android:id="@+id/toggle2"
128*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="wrap_content"
129*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content" />
130*90c8c64dSAndroid Build Coastguard Worker
131*90c8c64dSAndroid Build Coastguard Worker        <Spinner
132*90c8c64dSAndroid Build Coastguard Worker            android:id="@+id/spinner1"
133*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
134*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
135*90c8c64dSAndroid Build Coastguard Worker            android:entries="@array/planets"
136*90c8c64dSAndroid Build Coastguard Worker            android:drawSelectorOnTop="true" />
137*90c8c64dSAndroid Build Coastguard Worker
138*90c8c64dSAndroid Build Coastguard Worker        <TextView
139*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
140*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
141*90c8c64dSAndroid Build Coastguard Worker            android:layout_marginTop="5dip"
142*90c8c64dSAndroid Build Coastguard Worker            android:focusable="true"
143*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/textColorPrimary"
144*90c8c64dSAndroid Build Coastguard Worker            android:textAppearance="?android:attr/textAppearanceLarge" />
145*90c8c64dSAndroid Build Coastguard Worker
146*90c8c64dSAndroid Build Coastguard Worker        <TextView
147*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
148*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
149*90c8c64dSAndroid Build Coastguard Worker            android:layout_marginTop="5dip"
150*90c8c64dSAndroid Build Coastguard Worker            android:focusable="true"
151*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/textColorSecondary"
152*90c8c64dSAndroid Build Coastguard Worker            android:textAppearance="?android:attr/textAppearanceLarge"
153*90c8c64dSAndroid Build Coastguard Worker            android:textColor="?android:attr/textColorSecondary" />
154*90c8c64dSAndroid Build Coastguard Worker
155*90c8c64dSAndroid Build Coastguard Worker        <TextView
156*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="match_parent"
157*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
158*90c8c64dSAndroid Build Coastguard Worker            android:layout_marginTop="5dip"
159*90c8c64dSAndroid Build Coastguard Worker            android:focusable="true"
160*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/textColorTertiary"
161*90c8c64dSAndroid Build Coastguard Worker            android:textAppearance="?android:attr/textAppearanceLarge"
162*90c8c64dSAndroid Build Coastguard Worker            android:textColor="?android:attr/textColorTertiary" />
163*90c8c64dSAndroid Build Coastguard Worker
164*90c8c64dSAndroid Build Coastguard Worker        <TextView
165*90c8c64dSAndroid Build Coastguard Worker            style="?android:attr/listSeparatorTextViewStyle"
166*90c8c64dSAndroid Build Coastguard Worker            android:layout_marginTop="5dip"
167*90c8c64dSAndroid Build Coastguard Worker            android:text="@string/listSeparatorTextViewStyle" />
168*90c8c64dSAndroid Build Coastguard Worker
169*90c8c64dSAndroid Build Coastguard Worker        <TextView
170*90c8c64dSAndroid Build Coastguard Worker            android:layout_width="wrap_content"
171*90c8c64dSAndroid Build Coastguard Worker            android:layout_height="wrap_content"
172*90c8c64dSAndroid Build Coastguard Worker            android:layout_marginTop="400dip"
173*90c8c64dSAndroid Build Coastguard Worker            android:text="(And all inside of a ScrollView!)"
174*90c8c64dSAndroid Build Coastguard Worker            android:textAppearance="?android:attr/textAppearanceLarge" />
175*90c8c64dSAndroid Build Coastguard Worker    </LinearLayout>
176*90c8c64dSAndroid Build Coastguard Worker
177*90c8c64dSAndroid Build Coastguard Worker</ScrollView>