Home | History | Annotate | Download | only in gre
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Default configuration for various views to be rendered
      4     TODO: Remove views that don't have custom configuration
      5     TODO: Parameterize the custom width (200dip) in the below?
      6 -->
      7 <LinearLayout
      8     xmlns:android="http://schemas.android.com/apk/res/android"
      9     android:layout_width="match_parent"
     10     android:layout_height="match_parent"
     11     android:orientation="vertical">
     12     <AnalogClock
     13         android:layout_width="wrap_content"
     14         android:id="@+id/android_widget_AnalogClock"
     15         android:layout_height="75dip">
     16     </AnalogClock>
     17     <AutoCompleteTextView
     18         android:layout_height="wrap_content"
     19         android:layout_width="200dip"
     20         android:text="AutoComplete"
     21         android:id="@+id/android_widget_AutoCompleteTextView">
     22     </AutoCompleteTextView>
     23     <Button
     24         android:text="Button"
     25         android:id="@+id/android_widget_Button"
     26         android:layout_width="wrap_content"
     27         android:layout_height="wrap_content">
     28     </Button>
     29     <Button
     30         android:text="Small"
     31         style="?android:attr/buttonStyleSmall"
     32         android:id="@+id/android_widget_SmallButton"
     33         android:layout_width="wrap_content"
     34         android:layout_height="wrap_content">
     35     </Button>
     36     <CheckBox
     37         android:layout_height="wrap_content"
     38         android:layout_width="wrap_content"
     39         android:text="CheckBox"
     40         android:id="@+id/android_widget_CheckBox"
     41         android:checked="true">
     42     </CheckBox>
     43     <CheckedTextView
     44         android:text="CheckedTextView"
     45         android:id="@+id/android_widget_CheckedTextView"
     46         android:layout_height="wrap_content"
     47         android:layout_width="wrap_content">
     48     </CheckedTextView>
     49     <!--
     50     <Chronometer
     51         android:text="Chronometer"
     52         android:id="@+id/android_widget_Chronometer"
     53         android:layout_width="wrap_content"
     54         android:layout_height="wrap_content">
     55     </Chronometer>
     56      -->
     57     <DigitalClock
     58         android:text="DigitalClock"
     59         android:id="@+id/android_widget_DigitalClock"
     60         android:layout_width="wrap_content"
     61         android:layout_height="wrap_content">
     62     </DigitalClock>
     63 
     64     <EditText
     65         android:id="@+id/PlainText"
     66         android:text="abc"
     67         android:layout_width="200dip"
     68         android:layout_height="wrap_content">
     69     </EditText>
     70 
     71     <EditText
     72         android:id="@+id/Password"
     73         android:inputType="textPassword"
     74         android:text=""
     75         android:layout_width="200dip"
     76         android:layout_height="wrap_content">
     77     </EditText>
     78 
     79     <!-- android:inputType="numberPassword" not used here to allow digits in preview only -->
     80     <EditText
     81         android:id="@+id/PasswordNumeric"
     82         android:text="123"
     83         android:layout_width="200dip"
     84         android:layout_height="wrap_content">
     85     </EditText>
     86 
     87     <EditText
     88         android:id="@+id/PersonName"
     89         android:inputType="textPersonName"
     90         android:text="Firstname Lastname"
     91         android:layout_width="200dip"
     92         android:layout_height="wrap_content">
     93     </EditText>
     94 
     95     <EditText
     96         android:id="@+id/Phone"
     97         android:inputType="phone"
     98         android:text="(555) 0100"
     99         android:layout_width="200dip"
    100         android:layout_height="wrap_content">
    101     </EditText>
    102 
    103     <EditText
    104         android:id="@+id/PostalAddress"
    105         android:inputType="textPostalAddress"
    106         android:text="Address"
    107         android:layout_width="200dip"
    108         android:layout_height="100dip">
    109     </EditText>
    110 
    111     <EditText
    112         android:id="@+id/MultilineText"
    113         android:inputType="textMultiLine"
    114         android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor"
    115         android:layout_width="200dip"
    116         android:layout_height="100dip">
    117     </EditText>
    118 
    119     <EditText
    120         android:id="@+id/Date"
    121         android:inputType="date"
    122         android:text="1/1/2011"
    123         android:layout_width="200dip"
    124         android:layout_height="wrap_content">
    125     </EditText>
    126 
    127     <EditText
    128         android:id="@+id/Time"
    129         android:inputType="time"
    130         android:text="12:00am"
    131         android:layout_width="200dip"
    132         android:layout_height="wrap_content">
    133     </EditText>
    134 
    135     <EditText
    136         android:id="@+id/Email"
    137         android:inputType="textEmailAddress"
    138         android:text="user@domain"
    139         android:layout_width="200dip"
    140         android:layout_height="wrap_content">
    141     </EditText>
    142 
    143     <EditText
    144         android:id="@+id/Number"
    145         android:inputType="number"
    146         android:text="42"
    147         android:layout_width="200dip"
    148         android:layout_height="wrap_content">
    149     </EditText>
    150 
    151     <EditText
    152         android:id="@+id/NumberSigned"
    153         android:inputType="numberSigned"
    154         android:text="-42"
    155         android:layout_width="200dip"
    156         android:layout_height="wrap_content">
    157     </EditText>
    158 
    159     <EditText
    160         android:id="@+id/NumberDecimal"
    161         android:inputType="numberDecimal"
    162         android:text="42.0"
    163         android:layout_width="200dip"
    164         android:layout_height="wrap_content">
    165     </EditText>
    166 
    167     <TextView
    168         android:text="Large"
    169         android:id="@+id/LargeText"
    170         android:textAppearance="?android:attr/textAppearanceLarge"
    171         android:layout_width="wrap_content"
    172         android:layout_height="wrap_content">
    173     </TextView>
    174 
    175     <TextView
    176         android:text="Medium"
    177         android:id="@+id/MediumText"
    178         android:textAppearance="?android:attr/textAppearanceMedium"
    179         android:layout_width="wrap_content"
    180         android:layout_height="wrap_content">
    181     </TextView>
    182 
    183     <TextView
    184         android:text="Small"
    185         android:id="@+id/SmallText"
    186         android:textAppearance="?android:attr/textAppearanceSmall"
    187         android:layout_width="wrap_content"
    188         android:layout_height="wrap_content">
    189     </TextView>
    190 
    191     <MultiAutoCompleteTextView
    192         android:layout_height="wrap_content"
    193         android:layout_width="200dip"
    194         android:text="MultiAutoComplete"
    195         android:id="@+id/android_widget_MultiAutoCompleteTextView">
    196     </MultiAutoCompleteTextView>
    197     <ProgressBar
    198         android:id="@+id/android_widget_ProgressBarNormal"
    199         android:layout_width="wrap_content"
    200         android:layout_height="wrap_content">
    201     </ProgressBar>
    202     <ProgressBar
    203         android:id="@+id/android_widget_ProgressBarHorizontal"
    204         android:layout_width="200dip"
    205         android:layout_height="wrap_content"
    206         android:progress="30"
    207         style="?android:attr/progressBarStyleHorizontal">
    208     </ProgressBar>
    209     <ProgressBar
    210         android:id="@+id/android_widget_ProgressBarLarge"
    211         android:layout_width="wrap_content"
    212         android:layout_height="wrap_content"
    213         style="?android:attr/progressBarStyleLarge">
    214     </ProgressBar>
    215     <ProgressBar
    216         android:id="@+id/android_widget_ProgressBarSmall"
    217         android:layout_width="wrap_content"
    218         android:layout_height="wrap_content"
    219         style="?android:attr/progressBarStyleSmall">
    220     </ProgressBar>
    221     <QuickContactBadge
    222         android:layout_height="wrap_content"
    223         android:layout_width="wrap_content"
    224         android:id="@+id/android_widget_QuickContactBadge">
    225     </QuickContactBadge>
    226     <RadioButton
    227         android:layout_height="wrap_content"
    228         android:layout_width="wrap_content"
    229         android:id="@+id/android_widget_RadioButton"
    230         android:text="RadioButton"
    231         android:checked="true">
    232     </RadioButton>
    233     <RatingBar
    234         android:layout_height="wrap_content"
    235         android:layout_width="wrap_content"
    236         android:id="@+id/android_widget_RatingBar"
    237         android:rating="1">
    238     </RatingBar>
    239     <SeekBar
    240         android:layout_height="wrap_content"
    241         android:id="@+id/android_widget_SeekBar"
    242         android:layout_width="200dip"
    243         android:progress="30">
    244     </SeekBar>
    245     <ListView
    246         android:id="@+id/android_widget_ListView"
    247         android:layout_width="200dip"
    248         android:layout_height="60dip"
    249         android:divider="#333333"
    250         android:dividerHeight="1px"
    251         >
    252     </ListView>
    253     <ExpandableListView
    254         android:id="@+id/android_widget_ExpandableListView"
    255         android:layout_width="200dip"
    256         android:layout_height="60dip"
    257         android:divider="#333333"
    258         android:dividerHeight="1px"
    259         >
    260     </ExpandableListView>
    261     <Spinner
    262         android:layout_height="wrap_content"
    263         android:id="@+id/android_widget_Spinner"
    264         android:layout_width="200dip">
    265     </Spinner>
    266     <TextView
    267         android:text="TextView"
    268         android:id="@+id/android_widget_TextView"
    269         android:layout_width="wrap_content"
    270         android:layout_height="wrap_content">
    271     </TextView>
    272     <ToggleButton
    273         android:layout_height="wrap_content"
    274         android:layout_width="wrap_content"
    275         android:checked="false"
    276         android:id="@+id/android_widget_ToggleButton"
    277         android:text="ToggleButton">
    278     </ToggleButton>
    279     <ZoomButton
    280         android:id="@+id/android_widget_ZoomButton"
    281         android:layout_height="wrap_content"
    282         android:layout_width="wrap_content"
    283         android:src="@android:drawable/btn_plus">
    284     </ZoomButton>
    285     <ZoomControls
    286         android:id="@+id/android_widget_ZoomControls"
    287         android:layout_width="wrap_content"
    288         android:layout_height="wrap_content">
    289     </ZoomControls>
    290     <Switch
    291         android:id="@+id/android_widget_Switch"
    292         android:layout_width="wrap_content"
    293         android:layout_height="wrap_content" />
    294     <TimePicker
    295         android:id="@+id/android_widget_TimePicker"
    296         android:layout_width="wrap_content"
    297         android:layout_height="wrap_content">
    298     </TimePicker>
    299     <DatePicker
    300         android:id="@+id/android_widget_DatePicker"
    301         android:layout_width="wrap_content"
    302         android:layout_height="wrap_content">
    303     </DatePicker>
    304     <CalendarView
    305         android:id="@+id/android_widget_CalendarView"
    306         android:layout_width="200dip"
    307         android:layout_height="200dip">
    308     </CalendarView>
    309     <RadioGroup
    310         android:layout_height="wrap_content"
    311         android:layout_width="wrap_content"
    312         android:orientation="horizontal"
    313         android:id="@+id/android_widget_RadioGroup">
    314         <RadioButton
    315             android:checked="true">
    316         </RadioButton>
    317         <RadioButton></RadioButton>
    318         <RadioButton></RadioButton>
    319     </RadioGroup>
    320     <TabHost
    321         android:id="@android:id/tabhost"
    322         android:layout_width="200dip"
    323         android:layout_height="100dip">
    324         <LinearLayout
    325             android:id="@+id/linearLayout1"
    326             android:layout_width="match_parent"
    327             android:layout_height="match_parent"
    328             android:orientation="vertical">
    329             <TabWidget
    330                 android:layout_width="match_parent"
    331                 android:layout_height="wrap_content"
    332                 android:id="@android:id/tabs">
    333             </TabWidget>
    334             <FrameLayout
    335                 android:layout_width="match_parent"
    336                 android:layout_height="match_parent"
    337                 android:id="@android:id/tabcontent">
    338                 <LinearLayout
    339                     android:layout_width="match_parent"
    340                     android:layout_height="match_parent"
    341                     android:id="@+id/Tab1">
    342                 </LinearLayout>
    343                 <LinearLayout
    344                     android:layout_width="match_parent"
    345                     android:layout_height="match_parent"
    346                     android:id="@+id/Tab2">
    347                 </LinearLayout>
    348                 <LinearLayout
    349                     android:layout_width="match_parent"
    350                     android:layout_height="match_parent"
    351                     android:id="@+id/Tab3">
    352                 </LinearLayout>
    353             </FrameLayout>
    354         </LinearLayout>
    355     </TabHost>
    356     <TabHost
    357         android:id="@android:id/tabhost"
    358         android:layout_width="70dip"
    359         android:layout_height="100dip">
    360         <LinearLayout
    361             android:id="@+id/android_widget_TabWidget"
    362             android:layout_width="match_parent"
    363             android:layout_height="match_parent"
    364             android:orientation="vertical">
    365             <TabWidget
    366                 android:layout_width="match_parent"
    367                 android:layout_height="wrap_content"
    368                 android:id="@android:id/tabs">
    369             </TabWidget>
    370             <FrameLayout
    371                 android:layout_width="match_parent"
    372                 android:layout_height="match_parent"
    373                 android:id="@android:id/tabcontent">
    374                 <LinearLayout
    375                     android:layout_width="match_parent"
    376                     android:layout_height="match_parent"
    377                     android:id="@+id/Tab1">
    378                 </LinearLayout>
    379             </FrameLayout>
    380         </LinearLayout>
    381     </TabHost>
    382 </LinearLayout>
    383