Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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 <LinearLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:orientation="vertical"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content">
     21 
     22     <!-- CALENDARS SELECTOR for new events -->
     23     <LinearLayout
     24         android:id="@+id/calendar_selector_group"
     25         android:orientation="vertical"
     26         android:layout_width="match_parent"
     27         android:layout_height="wrap_content"
     28         android:focusable="true" >
     29         <Spinner
     30             android:id="@+id/calendars_spinner"
     31             android:prompt="@string/edit_event_calendar_label"
     32             android:layout_height="wrap_content"
     33             android:layout_width="match_parent"
     34             android:layout_gravity="center_vertical"
     35             android:paddingBottom="10dip"
     36             android:paddingTop="10dip"
     37             android:layout_marginLeft="12dip"
     38             android:layout_marginRight="12dip"
     39             android:gravity="center_vertical" />
     40     </LinearLayout>
     41 
     42     <!-- CALENDAR DISPLAY for existing events -->
     43     <LinearLayout
     44         android:id="@+id/calendar_group"
     45         android:orientation="vertical"
     46         android:layout_width="match_parent"
     47         android:layout_height="wrap_content"
     48         android:paddingBottom="5dip"
     49         android:paddingTop="5dip"
     50         android:focusable="true">
     51         <TextView
     52             android:id="@+id/calendar_textview"
     53             android:layout_height="wrap_content"
     54             android:layout_width="match_parent"
     55             android:textColor="#FFFFFFFF"
     56             android:layout_marginLeft="24dip"
     57             android:layout_marginRight="24dip"
     58             style="@style/TextAppearance.EditEvent_Value" />
     59         <TextView
     60             android:id="@+id/calendar_textview_secondary"
     61             android:layout_height="wrap_content"
     62             android:layout_width="match_parent"
     63             android:textColor="#FFFFFFFF"
     64             android:layout_marginLeft="24dip"
     65             android:layout_marginRight="24dip"
     66             android:textSize="14sp"
     67             style="@style/TextAppearance.EditEvent_Value" />
     68     </LinearLayout>
     69 
     70     <!-- WHAT -->
     71     <AutoCompleteTextView
     72         android:id="@+id/title"
     73         style="@style/TextAppearance.EditEvent_Value"
     74         android:singleLine="true"
     75         android:layout_width="match_parent"
     76         android:layout_height="wrap_content"
     77         android:layout_marginTop="4dip"
     78         android:minHeight="48dip"
     79         android:hint="@string/hint_what"
     80         android:capitalize="sentences"
     81         android:imeOptions="actionDone"
     82         android:inputType="textAutoCorrect|textCapSentences"
     83         android:focusable="true" />
     84 
     85     <!-- WHERE -->
     86     <LinearLayout android:id="@+id/where_row"
     87         android:orientation="vertical"
     88         android:layout_width="match_parent"
     89         android:layout_height="wrap_content"
     90         android:layout_marginBottom="6dip"
     91         android:focusable="true">
     92         <EditText
     93             android:id="@+id/location"
     94             android:singleLine="false"
     95             android:layout_height="wrap_content"
     96             android:layout_width="match_parent"
     97             android:minHeight="48dip"
     98             android:imeOptions="actionDone"
     99             style="@style/TextAppearance.EditEvent_Value"
    100             android:inputType="textAutoCorrect|textCapSentences"
    101             android:hint="@string/hint_where" />
    102     <View
    103         style="@style/EditEventSeparator"/>
    104     </LinearLayout>
    105 
    106     <!-- WHEN - Read-only textview version of FROM/TO (below) -->
    107     <LinearLayout
    108         android:id="@+id/when_row"
    109         android:visibility="gone"
    110         android:orientation="vertical"
    111         android:layout_width="match_parent"
    112         android:layout_height="wrap_content"
    113         android:minHeight="48dip"
    114         android:focusable="true">
    115         <TextView
    116             android:id="@+id/when_label"
    117             android:text="@string/when_label"
    118             android:layout_height="wrap_content"
    119             android:layout_width="wrap_content"
    120             android:layout_marginBottom="-8dip"
    121             style="@style/TextAppearance.EditEvent_LabelSmall" />
    122         <TextView
    123             android:id="@+id/when"
    124             android:layout_height="wrap_content"
    125             android:layout_width="wrap_content"
    126             android:layout_marginLeft="24dip"
    127             android:layout_marginRight="24dip"
    128             style="@style/TextAppearance.EditEvent_Value" />
    129     </LinearLayout>
    130 
    131     <!-- FROM - Read/write version which launches the date/time pickers -->
    132     <LinearLayout
    133         android:id="@+id/from_row"
    134         android:orientation="vertical"
    135         android:layout_width="match_parent"
    136         android:layout_height="wrap_content"
    137         android:minHeight="64dip">
    138         <TextView
    139             android:id="@+id/from_label"
    140             android:layout_height="wrap_content"
    141             android:layout_width="match_parent"
    142             android:text="@string/edit_event_from_label"
    143             style="@style/TextAppearance.EditEvent_LabelSmall" />
    144         <LinearLayout
    145             android:layout_height="wrap_content"
    146             android:layout_width="match_parent"
    147             android:orientation="horizontal"
    148             android:layout_marginTop="-6dip"
    149             android:animateLayoutChanges="false">
    150             <Button
    151                 android:id="@+id/start_date"
    152                 android:layout_width="0px"
    153                 android:layout_height="wrap_content"
    154                 android:layout_weight="7"
    155                 android:singleLine="true"
    156                 android:paddingRight="4dp"
    157                 android:layout_marginRight="0dp"
    158                 android:contentDescription="@string/accessibility_pick_start_date"
    159                 style="@style/TextAppearance.EditEvent_SpinnerButton" />
    160             <Button
    161                 android:id="@+id/start_time"
    162                 android:layout_width="0px"
    163                 android:layout_height="wrap_content"
    164                 android:layout_weight="4"
    165                 android:contentDescription="@string/accessibility_pick_start_time"
    166                 android:layout_marginLeft="0dip"
    167                 style="@style/TextAppearance.EditEvent_SpinnerButton" />
    168         </LinearLayout>
    169     </LinearLayout>
    170     <LinearLayout android:id="@+id/from_row_home_tz"
    171         android:visibility="gone"
    172         android:orientation="horizontal"
    173         android:layout_width="match_parent"
    174         android:layout_height="wrap_content"
    175         android:paddingBottom="8dip"
    176         android:layout_marginLeft="24dip"
    177         android:layout_marginRight="16dip"
    178         android:focusable="true">
    179         <TextView android:id="@+id/start_date_home_tz"
    180             android:layout_width="wrap_content"
    181             android:layout_height="wrap_content"
    182             android:layout_weight="7"
    183             android:gravity="left|center_vertical"
    184             style="@style/TextAppearance.EditEvent_homeTime" />
    185         <TextView android:id="@+id/start_time_home_tz"
    186             android:layout_width="wrap_content"
    187             android:layout_height="wrap_content"
    188             android:layout_weight="4"
    189             android:gravity="right|center_vertical"
    190             style="@style/TextAppearance.EditEvent_homeTime" />
    191     </LinearLayout>
    192 
    193     <!-- TO - Read/write version which launches the date/time pickers -->
    194     <LinearLayout
    195         android:id="@+id/to_row"
    196         android:orientation="vertical"
    197         android:layout_width="match_parent"
    198         android:layout_height="wrap_content"
    199         android:minHeight="64dip">
    200         <TextView
    201             android:id="@+id/to_label"
    202             android:text="@string/edit_event_to_label"
    203             android:layout_height="wrap_content"
    204             android:layout_width="match_parent"
    205             style="@style/TextAppearance.EditEvent_LabelSmall" />
    206         <LinearLayout
    207             android:orientation="horizontal"
    208             android:layout_height="wrap_content"
    209             android:layout_width="match_parent"
    210             android:layout_marginTop="-6dip"
    211             android:animateLayoutChanges="false">
    212             <Button
    213                 android:id="@+id/end_date"
    214                 android:layout_width="0px"
    215                 android:layout_height="wrap_content"
    216                 android:layout_weight="7"
    217                 android:singleLine="true"
    218                 android:paddingRight="4dp"
    219                 android:layout_marginRight="0dp"
    220                 android:contentDescription="@string/accessibility_pick_end_date"
    221                 style="@style/TextAppearance.EditEvent_SpinnerButton" />
    222             <Button
    223                 android:id="@+id/end_time"
    224                 android:layout_width="0px"
    225                 android:layout_height="wrap_content"
    226                 android:layout_weight="4"
    227                 android:contentDescription="@string/accessibility_pick_end_time"
    228                 android:layout_marginLeft="0dip"
    229                 style="@style/TextAppearance.EditEvent_SpinnerButton" />
    230         </LinearLayout>
    231     </LinearLayout>
    232     <LinearLayout
    233         android:id="@+id/to_row_home_tz"
    234         android:visibility="gone"
    235         android:focusable="true"
    236         android:orientation="horizontal"
    237         android:layout_width="match_parent"
    238         android:layout_height="wrap_content"
    239         android:paddingBottom="8dip"
    240         android:layout_marginLeft="24dip"
    241         android:layout_marginRight="16dip">
    242         <TextView android:id="@+id/end_date_home_tz"
    243             android:layout_width="wrap_content"
    244             android:layout_height="wrap_content"
    245             android:layout_weight="7"
    246             android:gravity="left|center_vertical"
    247             style="@style/TextAppearance.EditEvent_homeTime" />
    248         <TextView android:id="@+id/end_time_home_tz"
    249             android:layout_width="wrap_content"
    250             android:layout_height="wrap_content"
    251             android:layout_weight="4"
    252             android:gravity="right|center_vertical"
    253             style="@style/TextAppearance.EditEvent_homeTime" />
    254     </LinearLayout>
    255 
    256     <!-- ALL DAY -->
    257     <LinearLayout
    258         android:id="@+id/all_day_row"
    259         android:orientation="horizontal"
    260         android:gravity="center_vertical"
    261         android:layout_marginTop="4dip"
    262         android:layout_width="match_parent"
    263         android:layout_height="wrap_content"
    264         android:minHeight="24dip">
    265         <CheckBox
    266             android:id="@+id/is_all_day"
    267             android:layout_height="match_parent"
    268             android:layout_width="wrap_content"
    269             android:layout_gravity="center_vertical"
    270             android:gravity="center_vertical"
    271             android:layout_marginLeft="16dip"
    272             android:layout_marginRight="0dip"
    273             android:contentDescription="@string/accessibility_all_day"/>
    274         <TextView
    275             android:id="@+id/is_all_day_label"
    276             android:text="@string/edit_event_all_day_label"
    277             android:layout_height="wrap_content"
    278             android:layout_width="0dip"
    279             android:layout_weight="1"
    280             android:layout_marginLeft="-8dip"
    281             android:layout_gravity="center_vertical|left"
    282             android:gravity="center_vertical|left"
    283             style="@style/TextAppearance.EditEvent_Small" />
    284     </LinearLayout>
    285 
    286     <!-- TIME ZONE - Read-only textview version -->
    287     <LinearLayout
    288         android:id="@+id/timezone_textview_row"
    289         android:visibility="gone"
    290         android:orientation="vertical"
    291         android:layout_width="match_parent"
    292         android:layout_height="wrap_content"
    293         android:minHeight="48dip"
    294         android:focusable="true">
    295         <TextView
    296             android:id="@+id/timezone_textView"
    297             android:layout_height="wrap_content"
    298             android:layout_width="wrap_content"
    299             android:layout_marginLeft="24dip"
    300             android:layout_marginRight="24dip"
    301             style="@style/TextAppearance.EditEvent_Value" />
    302     </LinearLayout>
    303 
    304     <!-- TIME ZONE - Read/write version with button to launch picker -->
    305     <LinearLayout
    306         android:id="@+id/timezone_button_row"
    307         android:orientation="vertical"
    308         android:layout_width="match_parent"
    309         android:layout_height="wrap_content"
    310         android:minHeight="48dip">
    311         <Button
    312             android:id="@+id/timezone_button"
    313             android:gravity="left|center_vertical"
    314             android:layout_height="wrap_content"
    315             android:layout_width="match_parent"
    316             android:contentDescription="@string/accessibility_pick_time_zone"
    317             style="@style/TextAppearance.EditEvent_SpinnerButton" />
    318     </LinearLayout>
    319 
    320 
    321     <View
    322         style="@style/EditEventSeparator"/>
    323 </LinearLayout>