Skip to content

Commit 9970e71

Browse files
Merge pull request #34 from MadhavBangaru/master
UI enhanced for day activity
2 parents c5e564b + 0b6389d commit 9970e71

File tree

1 file changed

+53
-14
lines changed

1 file changed

+53
-14
lines changed

app/src/main/res/layout/activity_today.xml

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
tools:context="TodayActivity"
77
android:layout_width = "fill_parent"
88
android:layout_height = "fill_parent"
9+
android:background="#fcfce8"
910
android:scrollbars = "vertical">
1011

1112
<LinearLayout
@@ -23,6 +24,7 @@
2324
android:layout_height="wrap_content"
2425
android:id="@+id/name"
2526
android:text="Task :"
27+
android:fontFamily="sans-serif-smallcaps"
2628
android:layout_marginTop="10dp"
2729
android:layout_marginLeft="10dp"
2830
android:textSize="20sp"
@@ -52,6 +54,7 @@
5254
android:layout_height="wrap_content"
5355
android:id="@+id/type"
5456
android:text="Type"
57+
android:fontFamily="sans-serif-smallcaps"
5558
android:layout_marginTop="10dp"
5659
android:layout_marginLeft="10dp"
5760
android:textSize="20sp"
@@ -66,6 +69,12 @@
6669

6770
</LinearLayout>
6871

72+
<View
73+
android:layout_width="match_parent"
74+
android:layout_height=".5dp"
75+
android:layout_margin="14dp"
76+
android:background="@android:color/darker_gray"/>
77+
6978
<LinearLayout
7079
android:layout_width="match_parent"
7180
android:layout_height="wrap_content"
@@ -76,18 +85,26 @@
7685
android:layout_height="wrap_content"
7786
android:id="@+id/from"
7887
android:text="From :"
88+
android:fontFamily="sans-serif-smallcaps"
89+
android:layout_gravity="center_vertical"
7990
android:layout_marginTop="10dp"
80-
android:layout_marginLeft="10dp"
81-
android:textSize="20sp"
91+
android:layout_marginLeft="20dp"
92+
android:textSize="16sp"
8293
android:textColor="@android:color/black"/>
8394

8495
<TimePicker
8596
android:id = "@+id/simpleTimePicker"
8697
android:layout_width = "wrap_content"
8798
android:layout_height = "wrap_content"
88-
android:timePickerMode = "spinner" />
99+
android:paddingLeft="38dp"
100+
android:timePickerMode ="spinner" />
89101

90102
</LinearLayout>
103+
<View
104+
android:layout_width="match_parent"
105+
android:layout_height=".5dp"
106+
android:layout_margin="14dp"
107+
android:background="@android:color/darker_gray"/>
91108

92109
<LinearLayout
93110
android:layout_width="match_parent"
@@ -98,8 +115,10 @@
98115
android:id = "@+id/simpleCheckBox"
99116
android:layout_width = "wrap_content"
100117
android:layout_height = "wrap_content"
118+
android:layout_gravity="center_vertical"
101119
android:text = "Notify at : "
102-
android:textSize="20sp"
120+
android:fontFamily="sans-serif-smallcaps"
121+
android:textSize="16sp"
103122
android:layout_marginTop="10dp"
104123
android:layout_marginLeft="10dp"/>
105124

@@ -110,6 +129,11 @@
110129
android:timePickerMode = "spinner" />
111130

112131
</LinearLayout>
132+
<View
133+
android:layout_width="match_parent"
134+
android:layout_height=".5dp"
135+
android:layout_margin="14dp"
136+
android:background="@android:color/darker_gray"/>
113137

114138
<LinearLayout
115139
android:layout_width="match_parent"
@@ -120,8 +144,9 @@
120144
android:id = "@+id/MK"
121145
android:layout_width = "wrap_content"
122146
android:layout_height = "wrap_content"
123-
android:text = "Make it habit :"
124-
android:textSize="20sp"
147+
android:text = "Make it a habit :"
148+
android:fontFamily="sans-serif-smallcaps"
149+
android:textSize="16sp"
125150
android:layout_marginTop="10dp"
126151
android:layout_marginLeft="10dp"/>
127152

@@ -130,8 +155,7 @@
130155
android:layout_width = "wrap_content"
131156
android:layout_height = "wrap_content"
132157
android:layout_marginLeft="10dp"
133-
134-
android:layout_marginTop="10dp"
158+
android:layout_marginTop="10dp"
135159
android:text = "Daily "
136160
android:textSize="15sp" />
137161

@@ -144,6 +168,12 @@
144168

145169
</LinearLayout>
146170

171+
<View
172+
android:layout_width="match_parent"
173+
android:layout_height=".5dp"
174+
android:layout_margin="14dp"
175+
android:background="@android:color/darker_gray"/>
176+
147177
<LinearLayout
148178
android:layout_width="match_parent"
149179
android:layout_height="wrap_content"
@@ -154,18 +184,20 @@
154184
android:layout_width = "wrap_content"
155185
android:layout_height = "wrap_content"
156186
android:text = "Super reminder "
157-
android:textSize="20sp"
158-
android:layout_marginTop="50dp"
187+
android:fontFamily="sans-serif-smallcaps"
188+
android:textSize="18sp"
189+
android:layout_marginTop="25dp"
159190
android:layout_marginLeft="10dp"/>
160191

161192
<TextView
162193
android:layout_width="wrap_content"
163194
android:layout_height="wrap_content"
164195
android:id="@+id/taskReminder"
165196
android:text="Task is started"
197+
android:fontFamily="sans-serif-smallcaps"
166198
android:layout_marginTop="10dp"
167199
android:layout_marginLeft="50dp"
168-
android:textSize="20sp"
200+
android:textSize="18sp"
169201
android:textColor="@android:color/black"/>
170202

171203
<Switch
@@ -174,14 +206,21 @@
174206
android:layout_height = "wrap_content"
175207
android:layout_marginLeft="50dp"
176208
android:checked = "false"
177-
android:textSize="20sp"
209+
android:textSize="18sp"
178210
android:layout_marginTop="20dp"
179211
android:text = "Enable Notification"
212+
android:fontFamily="sans-serif-smallcaps"
180213
android:textOff = "Off"
181214
android:textOn = "On" />
182215

183216
</LinearLayout>
184217

218+
<View
219+
android:layout_width="match_parent"
220+
android:layout_height=".5dp"
221+
android:layout_margin="14dp"
222+
android:background="@android:color/darker_gray"/>
223+
185224
<LinearLayout
186225
android:layout_width="match_parent"
187226
android:layout_height="wrap_content"
@@ -192,7 +231,7 @@
192231
android:layout_width = "wrap_content"
193232
android:layout_height = "wrap_content"
194233
android:layout_centerHorizontal = "true"
195-
android:layout_marginTop = "70dp"
234+
android:layout_marginTop = "25dp"
196235
android:layout_marginLeft="25dp"
197236
android:layout_marginBottom="20dp"
198237
android:background = "@drawable/button_round"
@@ -206,7 +245,7 @@
206245
android:layout_width = "wrap_content"
207246
android:layout_height = "wrap_content"
208247
android:layout_centerHorizontal = "true"
209-
android:layout_marginTop = "70dp"
248+
android:layout_marginTop = "25dp"
210249
android:layout_marginLeft="20dp"
211250
android:layout_marginBottom="20dp"
212251
android:background = "@drawable/button_round"

0 commit comments

Comments
 (0)