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 <FrameLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:background="#fafafa"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent">
     21     <RelativeLayout
     22         android:id="@+id/event_info_loading_msg"
     23         android:layout_width="match_parent"
     24         android:layout_height="match_parent">
     25         <ProgressBar
     26             android:id="@+id/event_info_progress_bar"
     27             android:layout_width="100dip"
     28             android:layout_height="100dip"
     29             android:indeterminate="true"
     30             android:layout_centerInParent="true" />
     31         <TextView
     32             android:layout_below="@id/event_info_progress_bar"
     33             android:layout_centerHorizontal="true"
     34             android:layout_marginTop="16dip"
     35             android:text="@string/loading"
     36             android:layout_width="wrap_content"
     37             android:layout_height="wrap_content" />
     38     </RelativeLayout>
     39 
     40     <ScrollView
     41         xmlns:android="http://schemas.android.com/apk/res/android"
     42         android:id="@+id/event_info_scroll_view"
     43         android:orientation="vertical"
     44         android:layout_width="match_parent"
     45         android:layout_weight="1"
     46         android:layout_height="match_parent">
     47 
     48         <LinearLayout
     49             android:layout_width="match_parent"
     50             android:layout_height="wrap_content"
     51             android:layout_weight="1"
     52             android:padding="16dip"
     53             android:orientation="vertical"
     54             android:animateLayoutChanges="false">
     55 
     56             <!--  Container for the event's headline
     57                   Name, Date, Time & Location
     58             -->
     59             <LinearLayout
     60                 android:id="@+id/event_info_headline"
     61                 android:layout_width="match_parent"
     62                 android:layout_height="wrap_content"
     63                 android:paddingTop="12dip"
     64                 android:paddingBottom="16dip"
     65                 android:layout_weight="1"
     66                 android:orientation="vertical">
     67 
     68                 <LinearLayout
     69                     android:layout_width="match_parent"
     70                     android:layout_height="wrap_content"
     71                     android:orientation="horizontal">
     72                     <!-- WHAT -->
     73                     <TextView
     74                         android:id="@+id/title"
     75                         android:layout_weight=".8"
     76                         android:layout_width="0dip"
     77                         android:layout_height="wrap_content"
     78                         android:autoLink="all"
     79                         android:textIsSelectable="true"
     80                         android:textStyle="bold"
     81                         android:textColor="@color/event_info_headline_color"
     82                         android:textColorLink="@color/event_info_headline_color"
     83                         android:paddingLeft="16dip"
     84                         android:paddingRight="16dip"
     85                         style="?android:attr/textAppearanceLarge"
     86                         android:textSize="30sp" />
     87                     <!-- BUTTONS -->
     88                     <LinearLayout
     89                         android:id="@+id/event_info_buttons_container"
     90                         android:orientation="horizontal"
     91                         android:layout_width="wrap_content"
     92                         android:layout_height="wrap_content"
     93                         android:layout_marginLeft="16dip"
     94                         android:layout_marginRight="16dip"
     95                         android:layout_gravity="right">
     96                         <ImageButton
     97                             android:id="@+id/edit"
     98                             android:contentDescription="@string/edit_label"
     99                             android:layout_width="48dip"
    100                             android:layout_height="48dip"
    101                             android:enabled="false"
    102                             android:visibility="gone"
    103                             android:layout_marginRight="8dip"
    104                             android:padding="8dip"
    105                             android:scaleType="centerInside"
    106                             style="?android:attr/buttonBarButtonStyle"
    107                             android:src="@drawable/ic_menu_compose_holo_dark" />
    108                         <ImageButton
    109                             android:id="@+id/delete"
    110                             android:contentDescription="@string/delete_label"
    111                             android:layout_width="48dip"
    112                             android:layout_height="48dip"
    113                             android:layout_marginLeft="8dip"
    114                             android:padding="8dip"
    115                             android:scaleType="centerInside"
    116                             android:enabled="false"
    117                             android:visibility="gone"
    118                             style="?android:attr/buttonBarButtonStyle"
    119                             android:src="@drawable/ic_menu_trash_holo_dark" />
    120                     </LinearLayout>
    121                 </LinearLayout>
    122 
    123                 <!-- WHEN -->
    124                 <TextView
    125                     android:id="@+id/when_datetime"
    126                     android:layout_width="wrap_content"
    127                     android:layout_height="wrap_content"
    128                     android:textSize="18sp"
    129                     android:layout_marginTop="2dip"
    130                     android:paddingLeft="16dip"
    131                     android:paddingRight="16dip"
    132                     android:textIsSelectable="true"
    133                     android:textColor="@color/event_info_headline_color"
    134                     style="?android:attr/textAppearanceLarge" />
    135 
    136                 <TextView
    137                     android:id="@+id/when_repeat"
    138                     android:layout_width="wrap_content"
    139                     android:layout_height="wrap_content"
    140                     android:textSize="18sp"
    141                     android:paddingLeft="16dip"
    142                     android:paddingRight="16dip"
    143                     android:textColor="@color/event_info_headline_transparent_color"
    144                     style="?android:attr/textAppearanceLarge" />
    145 
    146                 <!-- WHERE -->
    147                 <TextView
    148                     android:id="@+id/where"
    149                     android:layout_width="match_parent"
    150                     android:layout_height="wrap_content"
    151                     android:ellipsize="end"
    152                     android:singleLine="false"
    153                     android:layout_marginTop="8dip"
    154                     android:textSize="18sp"
    155                     android:paddingLeft="16dip"
    156                     android:paddingRight="16dip"
    157                     android:textIsSelectable="true"
    158                     android:textColor="@color/event_info_headline_color"
    159                     android:textColorLink="@color/event_info_headline_link_color"
    160                     style="?android:attr/textAppearanceLarge" />
    161             </LinearLayout>
    162 
    163             <LinearLayout
    164                 android:layout_marginTop="10dip"
    165                 android:orientation="vertical"
    166                 android:layout_width="match_parent"
    167                 android:layout_height="wrap_content" >
    168 
    169                 <!-- Calendar Owner -->
    170                 <LinearLayout
    171                     android:id="@+id/calendar_container"
    172                     android:visibility="gone"
    173                     android:orientation="horizontal"
    174                     android:layout_width="match_parent"
    175                     android:layout_height="wrap_content">
    176                     <TextView
    177                         android:id="@+id/calendar_label"
    178                         android:layout_width="wrap_content"
    179                         android:layout_height="wrap_content"
    180                         android:paddingLeft="16dip"
    181                         android:singleLine="true"
    182                         android:text="@string/view_event_calendar_label"
    183                         android:textColor="@color/event_info_organizer_color"
    184                         style="?android:attr/textAppearanceSmall"
    185                         android:textSize="18sp"/>
    186                     <TextView
    187                         android:id="@+id/calendar_name"
    188                         android:layout_width="0px"
    189                         android:layout_height="wrap_content"
    190                         android:ellipsize="end"
    191                         android:layout_weight="1"
    192                         android:singleLine="true"
    193                         android:layout_marginLeft="4dip"
    194                         android:layout_marginRight="8dip"
    195                         android:textIsSelectable="true"
    196                         android:textColor="@color/event_info_organizer_color"
    197                         style="?android:attr/textAppearanceSmall"
    198                         android:textSize="18sp"/>
    199                 </LinearLayout>
    200 
    201                 <!-- Organizer -->
    202                 <LinearLayout
    203                     android:id="@+id/organizer_container"
    204                     android:visibility="gone"
    205                     android:orientation="horizontal"
    206                     android:layout_width="match_parent"
    207                     android:layout_height="wrap_content">
    208                     <TextView
    209                         android:id="@+id/organizer_label"
    210                         android:layout_width="wrap_content"
    211                         android:layout_height="wrap_content"
    212                         android:paddingLeft="16dip"
    213                         android:singleLine="true"
    214                         android:text="@string/event_info_organizer"
    215                         android:textColor="@color/event_info_organizer_color"
    216                         style="?android:attr/textAppearanceSmall"
    217                         android:textSize="18sp"/>
    218                     <TextView
    219                         android:id="@+id/organizer"
    220                         android:layout_width="0px"
    221                         android:layout_height="wrap_content"
    222                         android:ellipsize="end"
    223                         android:layout_weight="1"
    224                         android:singleLine="true"
    225                         android:layout_marginLeft="4dip"
    226                         android:layout_marginRight="8dip"
    227                         android:textIsSelectable="true"
    228                         android:textColor="@color/event_info_organizer_color"
    229                         style="?android:attr/textAppearanceSmall"
    230                         android:textSize="18sp"/>
    231                 </LinearLayout>
    232             </LinearLayout>
    233 
    234             <!-- DESCRIPTION -->
    235             <include
    236                 android:id="@+id/description"
    237                 layout="@layout/expandable_textview" />
    238 
    239             <!-- RESPONSE -->
    240             <LinearLayout
    241                 android:id="@+id/response_container"
    242                 android:visibility="gone"
    243                 android:orientation="vertical"
    244                 android:layout_width="match_parent"
    245                 android:layout_height="wrap_content">
    246                 <TextView
    247                     android:id="@+id/response_label"
    248                     android:layout_width="match_parent"
    249                     android:layout_height="wrap_content"
    250                     android:layout_gravity="center_vertical"
    251                     android:paddingLeft="8dip"
    252                     android:paddingRight="16dip"
    253                     android:layout_marginTop="8dip"
    254                     android:layout_marginLeft="8dip"
    255                     android:textColor="@color/event_info_label_color"
    256                     android:textAppearance="?android:attr/textAppearanceMedium"
    257                     style="?android:attr/listSeparatorTextViewStyle"
    258                     android:text="@string/view_event_response_label" />
    259                 <RadioGroup
    260                     android:id="@+id/response_value"
    261                     android:layout_width="match_parent"
    262                     android:layout_height="wrap_content"
    263                     android:minHeight="52dip"
    264                     android:layout_gravity="center_vertical"
    265                     android:paddingLeft="9dip"
    266                     android:orientation="horizontal">
    267                     <RadioButton
    268                         android:id="@+id/response_yes"
    269                         android:layout_width="0dip"
    270                         android:layout_height="wrap_content"
    271                         android:layout_weight="1"
    272                         android:layout_gravity="center_vertical"
    273                         android:minWidth="96dip"
    274                         style="?android:attr/textAppearanceMedium"
    275                         android:textColor="@color/event_info_body_color"
    276                         android:text="@string/response_yes" />
    277                     <RadioButton
    278                         android:id="@+id/response_maybe"
    279                         android:layout_width="0dip"
    280                         android:layout_height="wrap_content"
    281                         android:layout_weight="1"
    282                         android:layout_gravity="center_vertical"
    283                         android:minWidth="96dip"
    284                         style="?android:attr/textAppearanceMedium"
    285                         android:textColor="@color/event_info_body_color"
    286                         android:text="@string/response_maybe" />
    287                     <RadioButton
    288                         android:id="@+id/response_no"
    289                         android:layout_width="0dip"
    290                         android:layout_height="wrap_content"
    291                         android:layout_weight="1"
    292                         android:layout_gravity="center_vertical"
    293                         android:minWidth="96dip"
    294                         style="?android:attr/textAppearanceMedium"
    295                         android:textColor="@color/event_info_body_color"
    296                         android:text="@string/response_no" />
    297                 </RadioGroup>
    298             </LinearLayout>
    299 
    300             <!-- EMAIL GUESTS -->
    301             <LinearLayout
    302                 android:id="@+id/email_attendees_container"
    303                 android:visibility="gone"
    304                 android:orientation="vertical"
    305                 android:layout_width="match_parent"
    306                 android:layout_height="wrap_content">
    307                 <View
    308                     android:background="?android:attr/listDivider"
    309                     android:layout_height="1px"
    310                     android:layout_width="match_parent"
    311                     android:layout_marginLeft="8dip"
    312                     android:layout_marginRight="0dip" />
    313                 <Button
    314                     android:id="@+id/email_attendees_button"
    315                     android:text="@string/email_guests_label"
    316                     android:layout_height="50dp"
    317                     android:layout_width="match_parent"
    318                     android:layout_marginLeft="5dp"
    319                     android:layout_marginRight="0dp"
    320                     android:layout_gravity="left"
    321                     android:gravity="center_vertical"
    322                     android:paddingBottom="0dp"
    323                     android:layout_marginTop="0dip"
    324                     android:layout_marginBottom="0dip"
    325                     android:textAllCaps="false"
    326                     android:textSize="16sp"
    327                     android:textColor="#777777"
    328                     android:background="?android:attr/selectableItemBackground"
    329                     android:drawableLeft="@drawable/event_info_mail_button"
    330                     android:drawablePadding="8dp"
    331                     style="@style/TextAppearance.EditEvent_LabelSmall" />
    332             </LinearLayout>
    333 
    334             <!-- LAUNCH CUSTOM APP -->
    335             <LinearLayout
    336                 android:id="@+id/launch_custom_app_container"
    337                 android:visibility="gone"
    338                 android:orientation="vertical"
    339                 android:layout_width="match_parent"
    340                 android:layout_height="wrap_content">
    341                 <View
    342                     android:background="?android:attr/listDivider"
    343                     android:layout_height="1px"
    344                     android:layout_width="match_parent"
    345                     android:layout_marginLeft="8dip"
    346                     android:layout_marginRight="0dip" />
    347                 <Button
    348                     android:id="@+id/launch_custom_app_button"
    349                     android:layout_height="50dp"
    350                     android:layout_width="match_parent"
    351                     android:layout_marginLeft="5dp"
    352                     android:layout_marginRight="0dp"
    353                     android:layout_gravity="left"
    354                     android:gravity="center_vertical"
    355                     android:paddingBottom="0dp"
    356                     android:layout_marginTop="0dip"
    357                     android:layout_marginBottom="0dip"
    358                     android:textAllCaps="false"
    359                     android:textSize="16sp"
    360                     android:textColor="#777777"
    361                     android:background="?android:attr/selectableItemBackground"
    362                     android:drawablePadding="8dp"
    363                     style="@style/TextAppearance.EditEvent_LabelSmall" />
    364             </LinearLayout>
    365 
    366             <!-- GUEST LIST -->
    367             <com.android.calendar.event.AttendeesView
    368                 android:id="@+id/long_attendee_list"
    369                 android:textColor="@color/event_info_body_color"
    370                 android:orientation="vertical"
    371                 android:layout_height="wrap_content"
    372                 android:layout_width="match_parent"
    373                 android:visibility="gone"
    374                 android:layout_marginTop="5dip"/>
    375 
    376             <!-- REMINDERS -->
    377             <LinearLayout
    378                 android:id="@+id/reminders_row"
    379                 android:orientation="vertical"
    380                 android:layout_width="match_parent"
    381                 android:layout_height="wrap_content"
    382                 android:focusable="true">
    383                 <TextView
    384                     android:layout_width="match_parent"
    385                     android:layout_height="wrap_content"
    386                     android:layout_gravity="center_vertical"
    387                     android:paddingLeft="8dip"
    388                     android:paddingRight="16dip"
    389                     android:layout_marginTop="4dip"
    390                     android:layout_marginLeft="8dip"
    391                     android:textColor="@color/event_info_label_color"
    392                     android:textAppearance="?android:attr/textAppearanceMedium"
    393                     style="?android:attr/listSeparatorTextViewStyle"
    394                     android:text="@string/event_info_reminders_label" />
    395                 <LinearLayout
    396                     android:id="@+id/reminder_items_container"
    397                     android:layout_width="match_parent"
    398                     android:layout_height="wrap_content"
    399                     android:layout_marginLeft="-8dp"
    400                     android:layout_weight="1"
    401                     android:orientation="vertical" />
    402                 <Button
    403                     android:id="@+id/reminder_add"
    404                     android:text="@string/reminders_label"
    405                     android:layout_height="wrap_content"
    406                     android:layout_width="match_parent"
    407                     android:layout_marginLeft="8dp"
    408                     android:layout_marginRight="0dp"
    409                     android:layout_marginBottom="-6dp"
    410                     android:gravity="center_vertical|left"
    411                     android:textSize="18sp"
    412                     android:textColor="#FF777777"
    413                     android:minHeight="38dip"
    414                     android:background="?android:attr/selectableItemBackground"
    415                     android:contentDescription="@string/accessibility_add_reminder"
    416                     style="@style/TextAppearance.EditEvent_LabelSmall"
    417                     android:textAllCaps="false" />
    418             </LinearLayout>
    419         </LinearLayout>
    420     </ScrollView>
    421 </FrameLayout>
    422