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,15 +1,40 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/event_holder" <ScrollView
android:id="@+id/event_scrollview"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/event_holder"
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/activity_margin"> android:padding="@dimen/activity_margin">
<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"/>
<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 <TextView
android:id="@+id/event_start_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_title"
android:layout_marginTop="@dimen/activity_margin"
android:text="@string/start" android:text="@string/start"
android:textSize="@dimen/day_text_size"/> android:textSize="@dimen/day_text_size"/>
@ -60,4 +85,22 @@
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_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>