]> iEval git - unical.git/commitdiff
adds improvements to add event basic info
authorPetru Trimbitas <l3asketballplayer@yahoo.com>
Wed, 12 Jun 2013 13:24:20 +0000 (16:24 +0300)
committerPetru Trimbitas <l3asketballplayer@yahoo.com>
Wed, 12 Jun 2013 13:24:20 +0000 (16:24 +0300)
res/layout/add_event_basic_tab.xml
res/values/strings.xml
src/ro/ieval/unical/AddEventActivity.java

index 077dbcb8ae7893195bf3f19f3cbcd5beb5d3ff2e..7894af02572c691fed5e6f5476dd8ea7d729889d 100644 (file)
 
     </LinearLayout>
 
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" >
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/repeat"
+            android:layout_weight="1"
+            android:textAppearance="?android:attr/textAppearanceMedium" />
+
+        <Switch
+            android:id="@+id/repeat_switch"
+            android:layout_weight="1"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content" />
+
+    </LinearLayout>
+
+    <Spinner
+        android:id="@+id/repeat_spinner"
+        android:entries="@array/repeat_array"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" />
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" >
+
+        <TextView
+            android:id="@+id/textView1"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/repeat_every"
+            android:textAppearance="?android:attr/textAppearanceMedium" />
+
+        <EditText
+            android:id="@+id/editText1"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:ems="10"
+            android:inputType="number" />
+
+        <TextView
+            android:id="@+id/textView2"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="Medium Text"
+            android:textAppearance="?android:attr/textAppearanceMedium" />
+
+    </LinearLayout>
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" >
+
+        <Spinner
+            android:id="@+id/repeat_type"
+            android:entries="@array/repeat_type_array"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_weight="1" />
+
+    </LinearLayout>
+
 </LinearLayout>
index 711ebb90a61ef356a54b9c28d59935eae411dfaa..e2c68c212ae949cefa2dc579a7cbc554b2b6991a 100644 (file)
     <string name="pick_date">Pick date</string>
     <string name="start_label">Start: </string>
     <string name="end_label">End: </string>
+    <string name="repeat">Repeat</string>
+    <string name="repeat_every">Repeat every</string>
     
-    <string-array name="Repeat">
+    <string-array name="repeat_array">
         <item>Daily</item>
         <item>Weekly</item>
         <item>Monthly</item>
         <item>Yearly</item>
     </string-array>
+    <string-array name="repeat_type_array">
+        <item>Forever</item>
+        <item>Until</item>
+        <item>Number of events</item>
+    </string-array>
 </resources>
\ No newline at end of file
index 436d2cab7fb356dee8c1fc5c72c25bea5bcd06d2..d68d6497e65a1a3b838d462954d4f60923c9a977 100644 (file)
@@ -52,6 +52,7 @@ public final class AddEventActivity extends Activity implements OnDateSetListene
                actionBar.addTab(t1);
                actionBar.addTab(t2);
                actionBar.addTab(t3);
+               
        }
        
        @Override
This page took 0.0317 seconds and 4 git commands to generate.