]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | android:layout_width="match_parent" | |
4 | android:layout_height="match_parent" | |
5 | android:orientation="vertical" | |
6 | android:id="@+id/basic_tab" > | |
7 | ||
8 | <EditText | |
9 | android:inputType="text" | |
10 | android:id="@+id/eventtitle" | |
11 | android:layout_width="match_parent" | |
12 | android:layout_height="wrap_content" | |
13 | android:hint="@string/eventname" | |
14 | android:ems="10" > | |
15 | ||
16 | <requestFocus /> | |
17 | </EditText> | |
18 | ||
19 | <TextView | |
20 | android:layout_width="match_parent" | |
21 | android:layout_height="wrap_content" | |
22 | android:text="@string/start_label" | |
23 | android:textAppearance="?android:attr/textAppearanceMedium" /> | |
24 | ||
25 | <LinearLayout | |
26 | android:layout_width="match_parent" | |
27 | android:layout_height="wrap_content" > | |
28 | ||
29 | <TextView | |
30 | style="@android:style/Widget.DeviceDefault.EditText" | |
31 | android:id="@+id/time_start" | |
32 | android:layout_width="wrap_content" | |
33 | android:layout_height="wrap_content" | |
34 | android:onClick="showDateTimePickerDialog" | |
35 | android:text="@string/pick_time" | |
36 | android:layout_weight="1" | |
37 | android:ems="10" | |
38 | android:focusable="false" | |
39 | /> | |
40 | <TextView | |
41 | style="@android:style/Widget.DeviceDefault.EditText" | |
42 | android:id="@+id/date_start" | |
43 | android:layout_width="wrap_content" | |
44 | android:layout_height="wrap_content" | |
45 | android:onClick="showDateTimePickerDialog" | |
46 | android:text="@string/pick_date" | |
47 | android:layout_weight="1" | |
48 | android:ems="10" | |
49 | android:focusable="false" | |
50 | /> | |
51 | ||
52 | </LinearLayout> | |
53 | ||
54 | <TextView | |
55 | android:layout_width="match_parent" | |
56 | android:layout_height="wrap_content" | |
57 | android:text="@string/end_label" | |
58 | android:textAppearance="?android:attr/textAppearanceMedium" /> | |
59 | ||
60 | <LinearLayout | |
61 | android:layout_width="match_parent" | |
62 | android:layout_height="wrap_content" > | |
63 | ||
64 | <TextView | |
65 | style="@android:style/Widget.DeviceDefault.EditText" | |
66 | android:id="@+id/time_end" | |
67 | android:layout_width="wrap_content" | |
68 | android:layout_height="wrap_content" | |
69 | android:onClick="showDateTimePickerDialog" | |
70 | android:text="@string/pick_time" | |
71 | android:layout_weight="1" | |
72 | android:ems="10" | |
73 | android:focusable="false" | |
74 | /> | |
75 | <TextView | |
76 | style="@android:style/Widget.DeviceDefault.EditText" | |
77 | android:id="@+id/date_end" | |
78 | android:layout_width="wrap_content" | |
79 | android:layout_height="wrap_content" | |
80 | android:onClick="showDateTimePickerDialog" | |
81 | android:text="@string/pick_date" | |
82 | android:layout_weight="1" | |
83 | android:ems="10" | |
84 | android:focusable="false" | |
85 | /> | |
86 | ||
87 | </LinearLayout> | |
88 | ||
89 | <LinearLayout | |
90 | android:layout_width="match_parent" | |
91 | android:layout_height="wrap_content" > | |
92 | ||
93 | <TextView | |
94 | android:layout_width="wrap_content" | |
95 | android:layout_height="wrap_content" | |
96 | android:text="@string/repeat" | |
97 | android:layout_weight="1" | |
98 | android:textAppearance="?android:attr/textAppearanceMedium" /> | |
99 | ||
100 | <Switch | |
101 | android:id="@+id/repeat_switch" | |
102 | android:layout_weight="1" | |
103 | android:layout_width="wrap_content" | |
104 | android:layout_height="wrap_content" /> | |
105 | ||
106 | </LinearLayout> | |
107 | ||
108 | <LinearLayout | |
109 | android:layout_width="match_parent" | |
110 | android:layout_height="wrap_content" | |
111 | android:id="@+id/repeat_layout" | |
112 | android:orientation="vertical" > | |
113 | ||
114 | <LinearLayout | |
115 | android:layout_width="wrap_content" | |
116 | android:layout_height="wrap_content" | |
117 | android:layout_gravity="left" > | |
118 | ||
119 | <TextView | |
120 | android:layout_width="wrap_content" | |
121 | android:layout_height="wrap_content" | |
122 | android:text="@string/repeat_every" | |
123 | android:textAppearance="?android:attr/textAppearanceMedium" /> | |
124 | ||
125 | <EditText | |
126 | android:id="@+id/repeat_time" | |
127 | android:inputType="number" | |
128 | android:layout_width="wrap_content" | |
129 | android:layout_height="wrap_content" /> | |
130 | ||
131 | <Spinner | |
132 | android:id="@+id/repeat_spinner" | |
133 | android:entries="@array/repeat_array_p" | |
134 | android:layout_width="match_parent" | |
135 | android:layout_height="wrap_content" | |
136 | /> | |
137 | ||
138 | </LinearLayout> | |
139 | ||
140 | <LinearLayout | |
141 | android:id="@+id/repeat_count_layout" | |
142 | android:layout_gravity="left" | |
143 | android:layout_width="wrap_content" | |
144 | android:layout_height="wrap_content" > | |
145 | ||
146 | <Spinner | |
147 | android:id="@+id/repeat_type" | |
148 | android:entries="@array/repeat_type_array" | |
149 | android:layout_width="0dip" | |
150 | android:layout_height="wrap_content" | |
151 | android:layout_weight="1" /> | |
152 | <EditText | |
153 | android:id="@+id/repeat_count" | |
154 | android:inputType="number" | |
155 | android:layout_width="wrap_content" | |
156 | android:layout_height="wrap_content" | |
157 | android:visibility="gone" /> | |
158 | <TextView | |
159 | style="@android:style/Widget.DeviceDefault.EditText" | |
160 | android:id="@+id/repeat_until" | |
161 | android:layout_width="wrap_content" | |
162 | android:layout_height="wrap_content" | |
163 | android:onClick="showDateTimePickerDialog" | |
164 | android:ems="8" | |
165 | android:visibility="gone" /> | |
166 | </LinearLayout> | |
167 | </LinearLayout> | |
168 | </LinearLayout> |