add more fields at the Event

This commit is contained in:
tibbi 2016-07-04 12:10:01 +02:00
parent c5faeb92cd
commit 2cb67b128d
2 changed files with 100 additions and 55 deletions

View File

@ -1,63 +1,106 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/event_holder" <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/event_scrollview"
android:layout_width="match_parent" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:layout_height="wrap_content">
android:padding="@dimen/activity_margin">
<TextView <RelativeLayout
android:id="@+id/event_start_label" android:id="@+id/event_holder"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:text="@string/start" android:padding="@dimen/activity_margin">
android:textSize="@dimen/day_text_size"/>
<TextView <TextView
android:id="@+id/event_start_date" android:id="@+id/event_title_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/event_start_label" android:text="@string/title"
android:padding="@dimen/activity_margin" android:textSize="@dimen/day_text_size"/>
android:text="January 1 1970"
android:textSize="@dimen/day_text_size"/>
<TextView <EditText
android:id="@+id/event_start_time" android:id="@+id/event_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/event_start_label" android:layout_below="@+id/event_title_label"
android:layout_toRightOf="@id/event_start_date" android:inputType="text"
android:padding="@dimen/activity_margin" android:maxLength="30"
android:text="00:00" android:maxLines="1"
android:textSize="@dimen/day_text_size"/> android:minEms="20"
android:textSize="@dimen/day_text_size"/>
<TextView <TextView
android:id="@+id/event_end_label" android:id="@+id/event_start_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/event_start_date" android:layout_below="@+id/event_title"
android:layout_marginTop="@dimen/activity_margin" android:layout_marginTop="@dimen/activity_margin"
android:text="@string/end" android:text="@string/start"
android:textSize="@dimen/day_text_size"/> android:textSize="@dimen/day_text_size"/>
<TextView <TextView
android:id="@+id/event_end_date" android:id="@+id/event_start_date"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/event_end_label" android:layout_below="@+id/event_start_label"
android:padding="@dimen/activity_margin" android:padding="@dimen/activity_margin"
android:text="January 1 1970" android:text="January 1 1970"
android:textSize="@dimen/day_text_size"/> android:textSize="@dimen/day_text_size"/>
<TextView <TextView
android:id="@+id/event_end_time" android:id="@+id/event_start_time"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/event_end_label" android:layout_below="@+id/event_start_label"
android:layout_toRightOf="@id/event_end_date" android:layout_toRightOf="@id/event_start_date"
android:padding="@dimen/activity_margin" android:padding="@dimen/activity_margin"
android:text="00:00" android:text="00:00"
android:textSize="@dimen/day_text_size"/> 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>

View File

@ -6,8 +6,10 @@
<!-- Details --> <!-- Details -->
<string name="details">Details</string> <string name="details">Details</string>
<string name="title">Title</string>
<string name="start">Start</string> <string name="start">Start</string>
<string name="end">End</string> <string name="end">End</string>
<string name="description">Description</string>
<!-- About --> <!-- About -->
<string name="about">About</string> <string name="about">About</string>