]> iEval git - unical.git/commitdiff
Add alarm wip
authorPetru <l3asketballplayer@yahoo.com>
Mon, 19 Aug 2013 20:45:49 +0000 (23:45 +0300)
committerPetru <l3asketballplayer@yahoo.com>
Mon, 19 Aug 2013 20:45:49 +0000 (23:45 +0300)
A more beautiful layout for alarm

res/layout/alarm.xml

index ce2e6f851a344f4267034802c1c2a21bbc160c56..379eab98f18f074c9412a5dcc4b2ee9039b5b23d 100644 (file)
@@ -1,13 +1,77 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
-    android:orientation="vertical"
-    android:gravity="center" >
-    <Button
-        android:id="@+id/stopAlarm"
-        android:layout_width="wrap_content"
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              android:layout_width="match_parent"
+              android:layout_height="wrap_content"
+              android:orientation="vertical" >
+
+<ImageView
+        android:id="@+id/imageView1"
+        android:scaleType="fitXY"
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:text="@string/stop_alarm" />
-</RelativeLayout>
\ No newline at end of file
+        android:src="@android:drawable/title_bar_tall" />
+
+<LinearLayout
+        android:baselineAligned="false"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+    <LinearLayout
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:orientation="vertical" >
+
+        <TextView
+                android:id="@+id/startday"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceLarge" />
+
+        <TextView
+                android:id="@+id/startdate"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceMedium" />
+        <TextView
+                android:id="@+id/starttime"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceMedium" />
+
+    </LinearLayout>
+
+    <LinearLayout
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:orientation="vertical" >
+
+        <TextView
+                android:id="@+id/endday"
+                android:gravity="right"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceLarge" />
+
+        <TextView
+                android:id="@+id/enddate"
+                android:gravity="right"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceMedium" />
+        <TextView
+                android:id="@+id/endtime"
+                android:gravity="right"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceMedium" />
+
+    </LinearLayout>
+</LinearLayout>
+
+    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:gravity="center">
+        <Button android:id="@+id/stopAlarm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stop_alarm"/>
+    </RelativeLayout>
+
+</LinearLayout>
\ No newline at end of file
This page took 0.026771 seconds and 4 git commands to generate.