|
@@ -0,0 +1,98 @@
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
+ android:id="@+id/activity_new_event"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
|
|
+ android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
|
|
+ android:paddingRight="@dimen/activity_horizontal_margin"
|
|
|
|
|
+ android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
|
+ tools:context="com.example.david.libretasker.NewEventActivity"
|
|
|
|
|
+ android:weightSum="1">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_gravity="center_vertical">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:text="Name"
|
|
|
|
|
+ android:layout_width="fill_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:id="@+id/textView"
|
|
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
|
|
+ android:layout_weight="2" />
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:layout_width="fill_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:inputType="textPersonName"
|
|
|
|
|
+ android:text="example @string/app_name"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:id="@+id/editText" />
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:text="Event"
|
|
|
|
|
+ android:layout_width="fill_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:id="@+id/textView2"
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:layout_weight="2" />
|
|
|
|
|
+
|
|
|
|
|
+ <Spinner
|
|
|
|
|
+ android:layout_width="fill_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:id="@+id/spinner"
|
|
|
|
|
+ android:layout_below="@+id/textView"
|
|
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
|
|
+ android:layout_marginTop="19dp"
|
|
|
|
|
+ android:layout_weight="1" />
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:id="@+id/EventFields"></LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:text="Actions"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:id="@+id/textView3"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="5" />
|
|
|
|
|
+
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:text="+"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:id="@+id/button"
|
|
|
|
|
+ android:layout_weight="1" />
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <ListView
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:id="@+id/ActionsList"/>
|
|
|
|
|
+
|
|
|
|
|
+</LinearLayout>
|