diff options
author | Michael Chan <mchan@android.com> | 2011-11-07 17:05:59 -0800 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2011-11-08 21:56:56 -0800 |
commit | cba7f1fd22e1d7ee9d8d0828f37bc08512bf6b75 (patch) | |
tree | 6c2131dd786426907f6e2d291e300ea1bdaeb5bd /res/layout/event_info_dialog.xml | |
parent | 998e66e1be35f347a61e50dc8e6a138b5d13e210 (diff) | |
download | android_packages_apps_Calendar-cba7f1fd22e1d7ee9d8d0828f37bc08512bf6b75.tar.gz android_packages_apps_Calendar-cba7f1fd22e1d7ee9d8d0828f37bc08512bf6b75.tar.bz2 android_packages_apps_Calendar-cba7f1fd22e1d7ee9d8d0828f37bc08512bf6b75.zip |
b/5478688 Pixel perfect EventInfo on tablets
Change-Id: I4db0ab0d00122b9709704a2ec9ccf02445349943
Diffstat (limited to 'res/layout/event_info_dialog.xml')
-rw-r--r-- | res/layout/event_info_dialog.xml | 304 |
1 files changed, 304 insertions, 0 deletions
diff --git a/res/layout/event_info_dialog.xml b/res/layout/event_info_dialog.xml new file mode 100644 index 00000000..ad3af053 --- /dev/null +++ b/res/layout/event_info_dialog.xml @@ -0,0 +1,304 @@ +<?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. +--> + +<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:background="#fafafa" + android:layout_weight="1" + android:padding="16dip" + android:layout_height="match_parent"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + 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="wrap_content" + android:layout_height="wrap_content" + android:autoLink="all" + android:textStyle="bold" + android:textColor="@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"> + <Button + android:id="@+id/edit" + android:layout_width="32dip" + android:layout_height="32dip" + android:layout_weight="1" + android:enabled="false" + android:layout_marginTop="8dip" + android:layout_marginRight="16dip" + style="?android:attr/buttonBarButtonStyle" + android:background="@drawable/ic_menu_compose_holo_dark" /> + <Button + android:id="@+id/delete" + android:layout_width="32dip" + android:layout_height="32dip" + android:layout_marginTop="8dip" + android:layout_marginLeft="16dip" + android:layout_weight="1" + style="?android:attr/buttonBarButtonStyle" + android:background="@drawable/ic_menu_trash_holo_dark" /> + </LinearLayout> + </LinearLayout> + + <!-- WHEN --> + <TextView + android:id="@+id/when_date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="18sp" + android:layout_marginTop="2dip" + android:paddingLeft="16dip" + android:paddingRight="16dip" + android:textColor="@color/event_info_headline_color" + style="?android:attr/textAppearanceLarge" /> + + <TextView + android:id="@+id/when_time" + 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_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:textColor="@color/event_info_headline_color" + android:textColorLink="@color/event_info_headline_link_color" + style="?android:attr/textAppearanceLarge" /> + </LinearLayout> + + <!-- Organizer --> + <LinearLayout + android:id="@+id/organizer_container" + android:visibility="gone" + android:layout_marginTop="10dip" + 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:paddingRight="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="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:layout_weight="1" + android:singleLine="true" + android:layout_marginLeft="4dip" + android:layout_marginRight="8dip" + android:textColor="@color/event_info_organizer_color" + style="?android:attr/textAppearanceSmall" + android:textSize="18sp"/> + </LinearLayout> + + <!-- DESCRIPTION --> + <TextView + android:id="@+id/description" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:paddingLeft="16dip" + android:paddingRight="16dip" + android:layout_marginTop="16dip" + android:autoLink="all" + android:ellipsize="end" + android:maxLines="@integer/event_info_desc_line_num" + android:textSize="18sp" + android:textColor="@color/event_info_description_color" + style="?android:attr/textAppearanceSmall" + android:visibility="gone" /> + <Button + android:id="@+id/desc_expand" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:layout_marginTop="8dip" + android:layout_marginRight="16dip" + android:textColor="@color/event_info_description_color" + android:background="#00000000" + style="?android:attr/textAppearanceSmall" /> + + <!-- 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="32dip" + android:layout_gravity="center_vertical" + android:paddingLeft="8dip" + android:paddingRight="16dip" + android:layout_marginTop="16dip" + 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:layout_gravity="center_vertical" + android:layout_marginTop="8dip" + android:layout_marginBottom="8dip" + 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: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: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:minWidth="96dip" + style="?android:attr/textAppearanceMedium" + android:textColor="@color/event_info_body_color" + android:text="@string/response_no" /> + </RadioGroup> + </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: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="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="0dp" + 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="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginBottom="-6dp" + android:gravity="center_vertical|left" + android:textSize="18sp" + android:textColor="#FF777777" + android:minHeight="38dip" + android:background="@null" + android:contentDescription="@string/accessibility_add_reminder" + style="@style/TextAppearance.EditEvent_LabelSmall" + android:textAllCaps="false" /> + </LinearLayout> + </LinearLayout> +</ScrollView> |