Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2006 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:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:layout_weight="1.0" >
     21 
     22     <LinearLayout
     23         android:orientation="vertical"
     24         android:background="#fafafa"
     25         android:layout_width="match_parent"
     26         android:layout_height="wrap_content"
     27         android:layout_alignParentTop="true" >
     28 
     29         <LinearLayout android:id="@+id/cal_background"
     30             android:layout_width="match_parent"
     31             android:layout_height="wrap_content"
     32             android:paddingTop="10dip"
     33             android:paddingBottom="8dip"
     34             android:paddingLeft="8dip"
     35             android:paddingRight="8dip">
     36 
     37             <LinearLayout android:id="@+id/event"
     38                 android:background="@drawable/bg_cal_card"
     39                 android:orientation="vertical"
     40                 android:layout_height="wrap_content"
     41                 android:layout_width="match_parent"
     42                 android:layout_weight="1">
     43 
     44                 <!-- WHAT -->
     45                 <TextView android:id="@+id/title"
     46                     android:layout_width="match_parent"
     47                     android:layout_height="wrap_content"
     48                     android:autoLink="all"
     49                     android:textStyle="bold"
     50                     android:paddingBottom="7dip"
     51                     style="?android:attr/textAppearanceMedium"
     52                 />
     53 
     54                 <!-- CALENDAR -->
     55                 <RelativeLayout android:id="@+id/calendar_container"
     56                     android:orientation="horizontal"
     57                     android:layout_width="match_parent"
     58                     android:layout_height="wrap_content"
     59                     android:paddingBottom="5dip">
     60 
     61                     <TextView android:id="@+id/calendar_label"
     62                         android:layout_width="wrap_content"
     63                         android:layout_height="wrap_content"
     64                         android:layout_marginRight="5dip"
     65                         android:text="@string/view_event_calendar_label"
     66                         style="?android:attr/textAppearanceSmall"
     67                     />
     68 
     69                     <TextView android:id="@+id/calendar"
     70                         android:layout_width="match_parent"
     71                         android:layout_height="wrap_content"
     72                         android:singleLine="true"
     73                         android:layout_toRightOf="@id/calendar_label"
     74                         android:layout_alignTop="@id/calendar_label"
     75                         style="?android:attr/textAppearanceSmall"
     76                     />
     77 
     78                     <TextView android:id="@+id/owner"
     79                         android:layout_width="match_parent"
     80                         android:layout_height="wrap_content"
     81                         android:singleLine="true"
     82                         android:layout_alignLeft="@id/calendar_label"
     83                         android:layout_below="@id/calendar_label"
     84                         android:textAppearance="?android:attr/textAppearanceSmall"
     85                     />
     86 
     87                 </RelativeLayout>
     88 
     89                 <View android:id="@+id/divider"
     90                     android:layout_width="match_parent"
     91                     android:layout_height="wrap_content"
     92                     android:background="@android:drawable/divider_horizontal_dark"
     93                 />
     94 
     95                 <!-- WHEN -->
     96                 <TextView android:id="@+id/when"
     97                     android:layout_width="wrap_content"
     98                     android:layout_height="wrap_content"
     99                     android:paddingTop="7dip"
    100                     android:textStyle="bold"
    101                     style="?android:attr/textAppearanceSmall"
    102                 />
    103 
    104                 <!-- TIMEZONE -->
    105                 <LinearLayout android:id="@+id/timezone_container"
    106                     android:orientation="horizontal"
    107                     android:layout_width="match_parent"
    108                     android:layout_height="wrap_content">
    109 
    110                     <TextView android:id="@+id/timezone_label"
    111                         android:layout_width="wrap_content"
    112                         android:layout_height="wrap_content"
    113                         android:layout_marginRight="5dip"
    114                         android:text="@string/view_event_timezone_label"
    115                         style="?android:attr/textAppearanceSmall"
    116                     />
    117 
    118                     <TextView android:id="@+id/timezone"
    119                         android:layout_width="match_parent"
    120                         android:layout_height="wrap_content"
    121                         style="?android:attr/textAppearanceSmall"
    122                     />
    123                 </LinearLayout>
    124 
    125                 <!-- REPEATS -->
    126                 <LinearLayout android:id="@+id/repeat_container"
    127                     android:orientation="horizontal"
    128                     android:layout_width="match_parent"
    129                     android:layout_height="wrap_content">
    130 
    131                     <ImageView android:id="@+id/repeat_icon"
    132                         android:layout_width="wrap_content"
    133                         android:layout_height="wrap_content"
    134                         android:layout_gravity="center"
    135                         android:src="@drawable/ic_repeat_dark"
    136                         android:focusable="false"
    137                         android:clickable="false"
    138                     />
    139 
    140                     <TextView android:id="@+id/repeat"
    141                         android:layout_width="match_parent"
    142                         android:layout_height="wrap_content"
    143                         android:layout_marginLeft="3dip"
    144                         style="?android:attr/textAppearanceSmall"
    145                     />
    146                 </LinearLayout>
    147 
    148                 <!-- WHERE -->
    149                 <TextView android:id="@+id/where"
    150                     android:layout_width="match_parent"
    151                     android:layout_height="wrap_content"
    152                     android:paddingLeft="8dip"
    153                     android:paddingRight="8dip"
    154                     android:autoLink="all"
    155                     style="?android:attr/textAppearanceSmall"
    156                 />
    157 
    158                 <!-- Organizer -->
    159                 <LinearLayout android:id="@+id/organizer_container"
    160                     android:orientation="horizontal"
    161                     android:layout_width="match_parent"
    162                     android:layout_height="wrap_content"
    163                     android:paddingBottom="5dip"
    164                 >
    165 
    166                     <TextView
    167                         android:layout_width="wrap_content"
    168                         android:layout_height="wrap_content"
    169                         android:layout_marginRight="5dip"
    170                         android:text="@string/view_event_organizer_label"
    171                         style="?android:attr/textAppearanceSmall"
    172                     />
    173 
    174                     <TextView android:id="@+id/organizer"
    175                         android:layout_width="match_parent"
    176                         android:layout_height="wrap_content"
    177                         style="?android:attr/textAppearanceSmall"
    178                     />
    179                 </LinearLayout>
    180 
    181                 <!-- DESCRIPTION -->
    182                 <TextView android:id="@+id/description"
    183                     android:layout_width="match_parent"
    184                     android:layout_height="wrap_content"
    185                     android:paddingLeft="8dip"
    186                     android:paddingRight="8dip"
    187                     android:autoLink="all"
    188                     style="?android:attr/textAppearanceSmall"
    189                 />
    190 
    191             </LinearLayout>
    192         </LinearLayout>
    193 
    194         <!-- RESPONSE -->
    195         <LinearLayout android:id="@+id/response_container"
    196             android:orientation="vertical"
    197             android:layout_width="match_parent"
    198             android:layout_height="wrap_content"
    199             android:paddingLeft="8dip"
    200             android:paddingRight="8dip"
    201             android:paddingTop="5dip"
    202             android:paddingBottom="1dip">
    203 
    204             <TextView android:id="@+id/response_label"
    205                 android:layout_width="wrap_content"
    206                 android:layout_height="wrap_content"
    207                 android:text="@string/view_event_response_label"
    208                 style="@style/TextAppearance.EventInfo_Label"/>
    209 
    210             <Spinner android:id="@+id/response_value"
    211                 style="?android:attr/textAppearanceMedium"
    212                 android:prompt="@string/view_event_response_label"
    213                 android:layout_width="match_parent"
    214                 android:layout_height="wrap_content"
    215                 android:entries="@array/response_labels1"/>
    216         </LinearLayout>
    217 
    218         <!-- GUEST LIST -->
    219         <LinearLayout
    220             android:id="@+id/attendee_list"
    221             android:layout_width="match_parent"
    222             android:layout_height="wrap_content"
    223             android:paddingLeft="8dip"
    224             android:orientation="vertical" />
    225 
    226         <!-- REMINDERS -->
    227         <LinearLayout android:id="@+id/reminders_container"
    228             android:orientation="vertical"
    229             android:layout_width="match_parent"
    230             android:layout_height="wrap_content"
    231             android:paddingLeft="8dip"
    232             android:paddingRight="7dip"
    233             android:paddingTop="5dip"
    234             android:paddingBottom="5dip">
    235 
    236             <TextView android:id="@+id/reminders_label"
    237                 android:layout_width="wrap_content"
    238                 android:layout_height="wrap_content"
    239                 android:text="@string/reminders_label"
    240                 style="@style/TextAppearance.EventInfo_Label"/>
    241 
    242             <LinearLayout android:id="@+id/reminder_items_container"
    243                 style="?android:attr/textAppearanceMedium"
    244                 android:orientation="vertical"
    245                 android:layout_width="match_parent"
    246                 android:layout_height="wrap_content">
    247             </LinearLayout>
    248             <LinearLayout android:id="@+id/reminder_adder"
    249                 android:layout_width="match_parent"
    250                 android:layout_height="wrap_content"
    251                 android:gravity="center_vertical|right">
    252 
    253                 <TextView
    254                     android:layout_width="wrap_content"
    255                     android:layout_height="wrap_content"
    256                     android:layout_marginRight="7dip"
    257                     android:text="@string/add_new_reminder"/>
    258 
    259                 <ImageButton android:id="@+id/reminder_add"
    260                     style="@style/PlusButton"
    261                     android:layout_width="wrap_content"
    262                     android:layout_height="wrap_content"
    263                 />
    264             </LinearLayout>
    265         </LinearLayout>
    266     </LinearLayout>
    267 </ScrollView>
    268