| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2006 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <FrameLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:background="#fafafa" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| <RelativeLayout |
| android:id="@+id/event_info_loading_msg" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| <ProgressBar |
| android:id="@+id/event_info_progress_bar" |
| android:layout_width="100dip" |
| android:layout_height="100dip" |
| android:indeterminate="true" |
| android:layout_centerInParent="true" /> |
| <TextView |
| android:layout_below="@id/event_info_progress_bar" |
| android:layout_centerHorizontal="true" |
| android:layout_marginTop="16dip" |
| android:text="@string/loading" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| </RelativeLayout> |
| |
| <ScrollView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/event_info_scroll_view" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_weight="1" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:padding="16dip" |
| android:orientation="vertical" |
| android:animateLayoutChanges="false"> |
| |
| <!-- Container for the event's headline |
| Name, Date, Time & Location |
| --> |
| <LinearLayout |
| android:id="@+id/event_info_headline" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="12dip" |
| android:paddingBottom="16dip" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| <!-- WHAT --> |
| <TextView |
| android:id="@+id/title" |
| android:layout_weight=".8" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:autoLink="all" |
| android:textIsSelectable="true" |
| android:textStyle="bold" |
| android:textColor="@color/event_info_headline_color" |
| android:textColorLink="@color/event_info_headline_color" |
| android:paddingLeft="16dip" |
| android:paddingRight="16dip" |
| style="?android:attr/textAppearanceLarge" |
| android:textSize="30sp" /> |
| <!-- BUTTONS --> |
| <LinearLayout |
| android:id="@+id/event_info_buttons_container" |
| android:orientation="horizontal" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="16dip" |
| android:layout_marginRight="16dip" |
| android:layout_gravity="right"> |
| <ImageButton |
| android:id="@+id/change_color" |
| style="?android:attr/buttonBarButtonStyle" |
| android:src="@drawable/ic_menu_colorpicker_holo_dark" |
| android:contentDescription="@string/choose_event_color_label" |
| android:layout_width="48dip" |
| android:layout_height="48dip" |
| android:enabled="false" |
| android:visibility="gone" |
| android:layout_marginRight="8dip" |
| android:padding="8dip" |
| android:scaleType="centerInside" /> |
| <ImageButton |
| android:id="@+id/edit" |
| style="?android:attr/buttonBarButtonStyle" |
| android:src="@drawable/ic_menu_compose_holo_dark" |
| android:contentDescription="@string/edit_label" |
| android:layout_width="48dip" |
| android:layout_height="48dip" |
| android:enabled="false" |
| android:visibility="gone" |
| android:layout_marginRight="8dip" |
| android:padding="8dip" |
| android:scaleType="centerInside" /> |
| <ImageButton |
| android:id="@+id/delete" |
| style="?android:attr/buttonBarButtonStyle" |
| android:src="@drawable/ic_menu_trash_holo_dark" |
| android:contentDescription="@string/delete_label" |
| android:layout_width="48dip" |
| android:layout_height="48dip" |
| android:enabled="false" |
| android:visibility="gone" |
| android:padding="8dip" |
| android:scaleType="centerInside" /> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <!-- WHEN --> |
| <TextView |
| android:id="@+id/when_datetime" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="18sp" |
| android:layout_marginTop="2dip" |
| android:paddingLeft="16dip" |
| android:paddingRight="16dip" |
| android:textIsSelectable="true" |
| android:textColor="@color/event_info_headline_color" |
| style="?android:attr/textAppearanceLarge" /> |
| |
| <TextView |
| android:id="@+id/when_repeat" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="18sp" |
| android:paddingLeft="16dip" |
| android:paddingRight="16dip" |
| android:textColor="@color/event_info_headline_transparent_color" |
| style="?android:attr/textAppearanceLarge" /> |
| |
| <!-- WHERE --> |
| <TextView |
| android:id="@+id/where" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:singleLine="false" |
| android:layout_marginTop="8dip" |
| android:textSize="18sp" |
| android:paddingLeft="16dip" |
| android:paddingRight="16dip" |
| android:textIsSelectable="true" |
| android:textColor="@color/event_info_headline_color" |
| android:textColorLink="@color/event_info_headline_link_color" |
| style="?android:attr/textAppearanceLarge" /> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_marginTop="10dip" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <!-- Calendar Owner --> |
| <LinearLayout |
| android:id="@+id/calendar_container" |
| android:visibility="gone" |
| android:orientation="horizontal" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <TextView |
| android:id="@+id/calendar_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:paddingLeft="16dip" |
| android:singleLine="true" |
| android:text="@string/view_event_calendar_label" |
| android:textColor="@color/event_info_organizer_color" |
| style="?android:attr/textAppearanceSmall" |
| android:textSize="18sp"/> |
| <TextView |
| android:id="@+id/calendar_name" |
| android:layout_width="0px" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:layout_weight="1" |
| android:singleLine="true" |
| android:layout_marginLeft="4dip" |
| android:layout_marginRight="8dip" |
| android:textIsSelectable="true" |
| android:textColor="@color/event_info_organizer_color" |
| style="?android:attr/textAppearanceSmall" |
| android:textSize="18sp"/> |
| </LinearLayout> |
| |
| <!-- Organizer --> |
| <LinearLayout |
| android:id="@+id/organizer_container" |
| android:visibility="gone" |
| android:orientation="horizontal" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <TextView |
| android:id="@+id/organizer_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:paddingLeft="16dip" |
| android:singleLine="true" |
| android:text="@string/event_info_organizer" |
| android:textColor="@color/event_info_organizer_color" |
| style="?android:attr/textAppearanceSmall" |
| android:textSize="18sp"/> |
| <TextView |
| android:id="@+id/organizer" |
| android:layout_width="0px" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:layout_weight="1" |
| android:singleLine="true" |
| android:layout_marginLeft="4dip" |
| android:layout_marginRight="8dip" |
| android:textIsSelectable="true" |
| android:textColor="@color/event_info_organizer_color" |
| style="?android:attr/textAppearanceSmall" |
| android:textSize="18sp"/> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <!-- DESCRIPTION --> |
| <include |
| android:id="@+id/description" |
| layout="@layout/expandable_textview" /> |
| |
| <!-- RESPONSE --> |
| <LinearLayout |
| android:id="@+id/response_container" |
| android:visibility="gone" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <TextView |
| android:id="@+id/response_label" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:paddingLeft="8dip" |
| android:paddingRight="16dip" |
| android:layout_marginTop="8dip" |
| android:layout_marginLeft="8dip" |
| android:textColor="@color/event_info_label_color" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| style="?android:attr/listSeparatorTextViewStyle" |
| android:text="@string/view_event_response_label" /> |
| <RadioGroup |
| android:id="@+id/response_value" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:minHeight="52dip" |
| android:layout_gravity="center_vertical" |
| android:paddingLeft="9dip" |
| android:orientation="horizontal"> |
| <RadioButton |
| android:id="@+id/response_yes" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_gravity="center_vertical" |
| android:minWidth="96dip" |
| style="?android:attr/textAppearanceMedium" |
| android:textColor="@color/event_info_body_color" |
| android:text="@string/response_yes" /> |
| <RadioButton |
| android:id="@+id/response_maybe" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_gravity="center_vertical" |
| android:minWidth="96dip" |
| style="?android:attr/textAppearanceMedium" |
| android:textColor="@color/event_info_body_color" |
| android:text="@string/response_maybe" /> |
| <RadioButton |
| android:id="@+id/response_no" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_gravity="center_vertical" |
| android:minWidth="96dip" |
| style="?android:attr/textAppearanceMedium" |
| android:textColor="@color/event_info_body_color" |
| android:text="@string/response_no" /> |
| </RadioGroup> |
| </LinearLayout> |
| |
| <!-- EMAIL GUESTS --> |
| <LinearLayout |
| android:id="@+id/email_attendees_container" |
| android:visibility="gone" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <View |
| android:background="?android:attr/listDivider" |
| android:layout_height="1px" |
| android:layout_width="match_parent" |
| android:layout_marginLeft="8dip" |
| android:layout_marginRight="0dip" /> |
| <Button |
| android:id="@+id/email_attendees_button" |
| android:text="@string/email_guests_label" |
| android:layout_height="50dp" |
| android:layout_width="match_parent" |
| android:layout_marginLeft="5dp" |
| android:layout_marginRight="0dp" |
| android:layout_gravity="left" |
| android:gravity="center_vertical" |
| android:paddingBottom="0dp" |
| android:layout_marginTop="0dip" |
| android:layout_marginBottom="0dip" |
| android:textAllCaps="false" |
| android:textSize="16sp" |
| android:textColor="#777777" |
| android:background="?android:attr/selectableItemBackground" |
| android:drawableLeft="@drawable/event_info_mail_button" |
| android:drawablePadding="8dp" |
| style="@style/TextAppearance.EditEvent_LabelSmall" /> |
| </LinearLayout> |
| |
| <!-- LAUNCH CUSTOM APP --> |
| <LinearLayout |
| android:id="@+id/launch_custom_app_container" |
| android:visibility="gone" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <View |
| android:background="?android:attr/listDivider" |
| android:layout_height="1px" |
| android:layout_width="match_parent" |
| android:layout_marginLeft="8dip" |
| android:layout_marginRight="0dip" /> |
| <Button |
| android:id="@+id/launch_custom_app_button" |
| android:layout_height="50dp" |
| android:layout_width="match_parent" |
| android:layout_marginLeft="5dp" |
| android:layout_marginRight="0dp" |
| android:layout_gravity="left" |
| android:gravity="center_vertical" |
| android:paddingBottom="0dp" |
| android:layout_marginTop="0dip" |
| android:layout_marginBottom="0dip" |
| android:textAllCaps="false" |
| android:textSize="16sp" |
| android:textColor="#777777" |
| android:background="?android:attr/selectableItemBackground" |
| android:drawablePadding="8dp" |
| style="@style/TextAppearance.EditEvent_LabelSmall" /> |
| </LinearLayout> |
| |
| <!-- GUEST LIST --> |
| <com.android.calendar.event.AttendeesView |
| android:id="@+id/long_attendee_list" |
| android:textColor="@color/event_info_body_color" |
| android:orientation="vertical" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:visibility="gone" |
| android:layout_marginTop="5dip"/> |
| |
| <!-- REMINDERS --> |
| <LinearLayout |
| android:id="@+id/reminders_row" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:focusable="true"> |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:paddingLeft="8dip" |
| android:paddingRight="16dip" |
| android:layout_marginTop="4dip" |
| android:layout_marginLeft="8dip" |
| android:textColor="@color/event_info_label_color" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| style="?android:attr/listSeparatorTextViewStyle" |
| android:text="@string/event_info_reminders_label" /> |
| <LinearLayout |
| android:id="@+id/reminder_items_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="-8dp" |
| android:layout_weight="1" |
| android:orientation="vertical" /> |
| <Button |
| android:id="@+id/reminder_add" |
| android:text="@string/reminders_label" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:layout_marginLeft="8dp" |
| android:layout_marginRight="0dp" |
| android:layout_marginBottom="-6dp" |
| android:gravity="center_vertical|left" |
| android:textSize="18sp" |
| android:textColor="#FF777777" |
| android:minHeight="38dip" |
| android:background="?android:attr/selectableItemBackground" |
| android:contentDescription="@string/accessibility_add_reminder" |
| style="@style/TextAppearance.EditEvent_LabelSmall" |
| android:textAllCaps="false" /> |
| </LinearLayout> |
| </LinearLayout> |
| </ScrollView> |
| </FrameLayout> |