]> iEval git - unical.git/blobdiff - res/layout/add_event.xml
Removes repeat layout. Format date now works correctly
[unical.git] / res / layout / add_event.xml
index 885c616853c2f7d156ca16c2ad13a2cbf1725654..d9f2adf45abc151a1c1c5b6439cb2429a09bde6b 100644 (file)
-<LinearLayout
-xmlns:android="http://schemas.android.com/apk/res/android"
-android:orientation="vertical"
-android:layout_width="fill_parent"
-android:layout_height="fill_parent" android:layout_gravity="center">
-       <LinearLayout
-           android:orientation="vertical"
-           android:id="@+id/fragment_container"
-           android:layout_width="match_parent"
-           android:layout_height="match_parent" >
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent"
+        >
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:orientation="vertical"
+              android:layout_width="match_parent"
+              android:layout_height="match_parent">
+    <EditText
+            android:inputType="text"
+            android:id="@+id/eventtitle"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:hint="@string/eventname"
+            android:ems="10" >
+
+        <requestFocus />
+    </EditText>
+
+    <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:text="@string/start_label"
+            android:textAppearance="?android:attr/textAppearanceMedium">    </TextView>
+
+    <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content" >
+
+        <TextView
+                style="@android:style/Widget.DeviceDefault.EditText"
+                android:id="@+id/time_start"
+                android:freezesText="true"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:onClick="showDateTimePickerDialog"
+                android:text="@string/pick_time"
+                android:layout_weight="1"
+                android:ems="10"
+                android:focusable="false"
+                />
+        <TextView
+                style="@android:style/Widget.DeviceDefault.EditText"
+                android:id="@+id/date_start"
+                android:freezesText="true"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:onClick="showDateTimePickerDialog"
+                android:text="@string/pick_date"
+                android:layout_weight="1"
+                android:ems="10"
+                android:focusable="false"
+                />
+
+    </LinearLayout>
+
+    <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:text="@string/end_label"
+            android:textAppearance="?android:attr/textAppearanceMedium" />
+
+    <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content" >
+
+        <TextView
+                style="@android:style/Widget.DeviceDefault.EditText"
+                android:id="@+id/time_end"
+                android:freezesText="true"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:onClick="showDateTimePickerDialog"
+                android:text="@string/pick_time"
+                android:layout_weight="1"
+                android:ems="10"
+                android:focusable="false"
+                />
+        <TextView
+                style="@android:style/Widget.DeviceDefault.EditText"
+                android:id="@+id/date_end"
+                android:freezesText="true"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:onClick="showDateTimePickerDialog"
+                android:text="@string/pick_date"
+                android:layout_weight="1"
+                android:focusable="false"
+                />
+
+    </LinearLayout>
+
+    <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content" >
+        <EditText
+                android:id="@+id/description"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:ems="10"
+                android:hint="@string/description"
+                android:inputType="textMultiLine" >
+
+            <requestFocus />
+        </EditText>
+
+    </LinearLayout>
 
 </LinearLayout>
-</LinearLayout>
\ No newline at end of file
+        </ScrollView>
This page took 0.023807 seconds and 4 git commands to generate.