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