-
Notifications
You must be signed in to change notification settings - Fork 1
/
activity_time_picker.xml
42 lines (35 loc) · 1.36 KB
/
activity_time_picker.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.example.abcd.alarmclock.TimePickerActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<DatePicker
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/dpDate"/>
<TimePicker
android:id="@+id/tpTime"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ok"
android:textColor="#1d0036"
android:layout_marginTop="20dp"
android:layout_gravity="center"
android:elevation="0dp"
android:onClick="backToMain"
android:id="@+id/btnOk"/>
</LinearLayout>
</ScrollView>