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