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