add more fields at the Event
This commit is contained in:
parent
c5faeb92cd
commit
2cb67b128d
2 changed files with 100 additions and 55 deletions
|
@ -1,63 +1,106 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:id="@+id/event_holder"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/activity_margin">
|
||||
<ScrollView
|
||||
android:id="@+id/event_scrollview"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_start_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/start"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
<RelativeLayout
|
||||
android:id="@+id/event_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/activity_margin">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_start_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_start_label"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="January 1 1970"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
<TextView
|
||||
android:id="@+id/event_title_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/title"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_start_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_start_label"
|
||||
android:layout_toRightOf="@id/event_start_date"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="00:00"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
<EditText
|
||||
android:id="@+id/event_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_title_label"
|
||||
android:inputType="text"
|
||||
android:maxLength="30"
|
||||
android:maxLines="1"
|
||||
android:minEms="20"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_end_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_start_date"
|
||||
android:layout_marginTop="@dimen/activity_margin"
|
||||
android:text="@string/end"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
<TextView
|
||||
android:id="@+id/event_start_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_title"
|
||||
android:layout_marginTop="@dimen/activity_margin"
|
||||
android:text="@string/start"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_end_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_end_label"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="January 1 1970"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
<TextView
|
||||
android:id="@+id/event_start_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_start_label"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="January 1 1970"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_end_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_end_label"
|
||||
android:layout_toRightOf="@id/event_end_date"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="00:00"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
<TextView
|
||||
android:id="@+id/event_start_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_start_label"
|
||||
android:layout_toRightOf="@id/event_start_date"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="00:00"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:id="@+id/event_end_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_start_date"
|
||||
android:layout_marginTop="@dimen/activity_margin"
|
||||
android:text="@string/end"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_end_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_end_label"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="January 1 1970"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_end_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_end_label"
|
||||
android:layout_toRightOf="@id/event_end_date"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="00:00"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/event_description_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_end_time"
|
||||
android:layout_marginTop="@dimen/activity_margin"
|
||||
android:text="@string/description"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/event_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/event_description_label"
|
||||
android:gravity="top"
|
||||
android:textSize="@dimen/day_text_size"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</ScrollView>
|
||||
|
|
|
@ -6,8 +6,10 @@
|
|||
|
||||
<!-- Details -->
|
||||
<string name="details">Details</string>
|
||||
<string name="title">Title</string>
|
||||
<string name="start">Start</string>
|
||||
<string name="end">End</string>
|
||||
<string name="description">Description</string>
|
||||
|
||||
<!-- About -->
|
||||
<string name="about">About</string>
|
||||
|
|
Loading…
Reference in a new issue