blob: ab1f1cae743f741c262c9d2a9de4c9258f3f7d30 [file] [log] [blame]
<?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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/edit_event"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/EditEvent_Layout">
<TextView android:id="@+id/loading_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/loading" />
<LinearLayout android:id="@+id/two_pane"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<ScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:fillViewport="true"
android:visibility="gone">
<LinearLayout android:id="@+id/event"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- CALENDARS -->
<LinearLayout android:id="@+id/calendar_group"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit_event_calendar_label"
style="@style/TextAppearance.EditEvent_Label"/>
<Spinner android:id="@+id/calendars"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:prompt="@string/edit_event_calendar_label"/>
</LinearLayout>
<!-- WHAT -->
<TextView android:id="@+id/what_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/what_label"
style="@style/TextAppearance.EditEvent_Label"/>
<EditText android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_what"
android:capitalize="sentences"/>
<!-- WHEN -->
<TextView android:id="@+id/from_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit_event_from_label"
style="@style/TextAppearance.EditEvent_Label"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/start_date"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="7"
android:gravity="left|center_vertical"
style="?android:attr/textAppearanceMedium"/>
<Button android:id="@+id/start_time"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="4"
android:gravity="left|center_vertical"
style="?android:attr/textAppearanceMedium"/>
</LinearLayout>
<TextView android:id="@+id/to_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit_event_to_label"
style="@style/TextAppearance.EditEvent_Label"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/end_date"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="7"
android:gravity="left|center_vertical"
style="?android:attr/textAppearanceMedium"/>
<Button android:id="@+id/end_time"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="4"
android:gravity="left|center_vertical"
style="?android:attr/textAppearanceMedium"/>
</LinearLayout>
<TextView android:id="@+id/timezone_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/timezone_label"
style="@style/TextAppearance.EditEvent_Label"/>
<Button android:id="@+id/timezone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left|center_vertical"
style="?android:attr/textAppearanceMedium"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|right"
android:paddingBottom="5dip">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/edit_event_all_day_label"
android:paddingTop="1dip"
android:paddingRight="7dip"
style="?android:attr/textAppearanceMedium"/>
<CheckBox android:id="@+id/is_all_day"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="15dip"
android:paddingBottom="15dip"
android:paddingRight="1dip"/>
</LinearLayout>
<!-- WHERE -->
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="@android:drawable/divider_horizontal_bright" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/where_label"
style="@style/TextAppearance.EditEvent_Label"/>
<EditText android:id="@+id/location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_where"
android:capitalize="sentences"/>
<!-- DESCRIPTION -->
<TextView android:id="@+id/description_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/description_label"
style="@style/TextAppearance.EditEvent_Label"/>
<EditText android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_description"
android:capitalize="sentences"/>
<!-- REPEATS -->
<TextView android:id="@+id/repeats_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/repeats_label"
style="@style/TextAppearance.EditEvent_Label"/>
<Spinner android:id="@+id/repeats"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:prompt="@string/repeats_label"/>
<!-- MORE OPTIONS -->
<!-- PRESENCE -->
<TextView android:id="@+id/presence_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/presence_label"
style="@style/TextAppearance.EditEvent_Label"/>
<Spinner android:id="@+id/availability"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/availability"
android:prompt="@string/presence_label"/>
<!-- PRIVACY -->
<TextView android:id="@+id/privacy_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/privacy_label"
style="@style/TextAppearance.EditEvent_Label"/>
<Spinner android:id="@+id/visibility"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/visibility"
android:prompt="@string/privacy_label"/>
<!-- REMINDERS -->
<View android:id="@+id/reminders_separator"
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="@android:drawable/divider_horizontal_dark" />
<TextView android:id="@+id/reminders_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reminders_label"
style="@style/TextAppearance.EditEvent_Label"/>
<LinearLayout android:id="@+id/reminder_items_container"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|right"
android:paddingBottom="5dip">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="2dip"
android:text="@string/add_new_reminder"
style="?android:attr/textAppearanceSmall"/>
<ImageButton android:id="@+id/reminder_add"
style="@style/PlusButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="7dip"
android:gravity="center_vertical|right" />
</LinearLayout>
</LinearLayout>
</ScrollView>
<!-- GUESTS/ATTENDEES -->
<LinearLayout android:id="@+id/attendees_group"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="4dip"
android:layout_weight="2" >
<!-- RESPONSE -->
<TextView android:id="@+id/response_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/view_event_response_label"
style="@style/TextAppearance.EditEvent_Label"/>
<Spinner android:id="@+id/response_value"
style="?android:attr/textAppearanceMedium"
android:prompt="@string/view_event_response_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/response_labels1"/>
<!-- GUEST LIST -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/attendees_label"
style="@style/TextAppearance.EditEvent_Label"/>
<LinearLayout android:id="@+id/add_guests_container"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<MultiAutoCompleteTextView android:id="@+id/attendees"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress|textMultiLine"
android:hint="@string/hint_attendees"
android:layout_marginTop="6dip"
android:layout_marginBottom="6dip"
android:imeOptions="actionNext"
android:layout_weight="1"
style="@style/TextAppearance.EditEvent_Label"/>
<ImageButton android:id="@+id/attendee_add"
style="@style/PlusButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
<ListView
android:id="@+id/attendee_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:cacheColorHint="@android:color/background_light"/>
</LinearLayout>
</LinearLayout>
<!-- BUTTONS -->
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@android:style/ButtonBar" >
<Button android:id="@+id/save"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/save_label" />
<Button android:id="@+id/discard"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/discard_label" />
<Button android:id="@+id/delete"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/delete_label" />
</LinearLayout>
</LinearLayout>