• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2007 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    android:orientation="vertical" >
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:orientation="vertical" >
27
28        <LinearLayout
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content"
31            android:orientation="horizontal" >
32
33            <Button
34                android:id="@+id/button"
35                android:layout_width="wrap_content"
36                android:layout_height="wrap_content"
37                android:text="@string/controls_1_save" />
38
39            <Button
40                android:id="@+id/button_disabled"
41                android:layout_width="wrap_content"
42                android:layout_height="wrap_content"
43                android:text="@string/controls_1_save" />
44        </LinearLayout>
45
46        <LinearLayout
47            android:layout_width="match_parent"
48            android:layout_height="wrap_content"
49            android:orientation="horizontal" >
50
51            <Switch
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:text="@string/controls_1_save" />
55
56            <Switch
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:enabled="false"
60                android:text="@string/controls_1_save" />
61        </LinearLayout>
62
63        <LinearLayout
64            android:layout_width="match_parent"
65            android:layout_height="wrap_content"
66            android:orientation="horizontal" >
67
68            <EditText
69                android:id="@+id/edit"
70                android:layout_width="0dp"
71                android:layout_height="wrap_content"
72                android:layout_weight="1" />
73
74            <EditText
75                android:id="@+id/edit2"
76                android:layout_width="0dp"
77                android:layout_height="wrap_content"
78                android:layout_weight="1" />
79        </LinearLayout>
80
81        <CheckBox
82            android:id="@+id/check1"
83            android:layout_width="wrap_content"
84            android:layout_height="wrap_content"
85            android:paddingBottom="24sp"
86            android:paddingTop="24sp"
87            android:text="@string/controls_1_checkbox_1" />
88
89        <CheckBox
90            android:id="@+id/check2"
91            android:layout_width="wrap_content"
92            android:layout_height="wrap_content"
93            android:text="@string/controls_1_checkbox_2" />
94
95        <RadioGroup
96            android:layout_width="match_parent"
97            android:layout_height="wrap_content"
98            android:orientation="vertical" >
99
100            <RadioButton
101                android:id="@+id/radio1"
102                android:layout_width="wrap_content"
103                android:layout_height="wrap_content"
104                android:text="@string/controls_1_radiobutton_1" />
105
106            <RadioButton
107                android:id="@+id/radio2"
108                android:layout_width="wrap_content"
109                android:layout_height="wrap_content"
110                android:text="@string/controls_1_radiobutton_2" />
111        </RadioGroup>
112
113        <CheckBox
114            android:id="@+id/star"
115            style="?android:attr/starStyle"
116            android:layout_width="wrap_content"
117            android:layout_height="wrap_content"
118            android:text="@string/controls_1_star" />
119
120        <ToggleButton
121            android:id="@+id/toggle1"
122            android:layout_width="wrap_content"
123            android:layout_height="wrap_content" />
124
125        <ToggleButton
126            android:id="@+id/toggle2"
127            android:layout_width="wrap_content"
128            android:layout_height="wrap_content" />
129
130        <Spinner
131            android:id="@+id/spinner1"
132            android:layout_width="match_parent"
133            android:layout_height="wrap_content"
134            android:drawSelectorOnTop="true" />
135
136        <TextView
137            android:layout_width="match_parent"
138            android:layout_height="wrap_content"
139            android:layout_marginTop="5dip"
140            android:focusable="true"
141            android:text="@string/textColorPrimary"
142            android:textAppearance="?android:attr/textAppearanceLarge" />
143
144        <TextView
145            android:layout_width="match_parent"
146            android:layout_height="wrap_content"
147            android:layout_marginTop="5dip"
148            android:focusable="true"
149            android:text="@string/textColorSecondary"
150            android:textAppearance="?android:attr/textAppearanceLarge"
151            android:textColor="?android:attr/textColorSecondary" />
152
153        <TextView
154            android:layout_width="match_parent"
155            android:layout_height="wrap_content"
156            android:layout_marginTop="5dip"
157            android:focusable="true"
158            android:text="@string/textColorTertiary"
159            android:textAppearance="?android:attr/textAppearanceLarge"
160            android:textColor="?android:attr/textColorTertiary" />
161
162        <TextView
163            style="?android:attr/listSeparatorTextViewStyle"
164            android:layout_marginTop="5dip"
165            android:text="@string/listSeparatorTextViewStyle" />
166
167        <TextView
168            android:layout_width="wrap_content"
169            android:layout_height="wrap_content"
170            android:layout_marginTop="400dip"
171            android:text="(And all inside of a ScrollView!)"
172            android:textAppearance="?android:attr/textAppearanceLarge" />
173    </LinearLayout>
174
175</ScrollView>