1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 The Android Open Source Project
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 <!-- TODO: too many LinearLayout. -->
17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:orientation="vertical"
19 android:layout_width="fill_parent"
20 android:layout_height="fill_parent"
21 android:paddingTop="70dip"
22 android:paddingBottom="40dip"
23 android:paddingLeft="60dip"
24 android:paddingRight="60dip">
26 <!-- Title: Set date & time-->
27 <TextView android:id="@+id/title"
28 android:layout_width="fill_parent"
29 android:layout_height="wrap_content"
30 android:layout_weight="0"
31 android:gravity="center"
32 android:layout_marginBottom="10dip"
33 android:layout_alignParentTop="true"
34 android:textSize="64dip"
35 android:textColor="#FF30FF30"
36 android:text="@string/date_and_time_settings_title"/>
38 <LinearLayout android:id="@+id/main"
39 android:orientation="horizontal"
40 android:layout_width="fill_parent"
41 android:layout_height="fill_parent"
42 android:layout_weight="1">
43 <!-- Left side: time zone setting -->
44 <LinearLayout android:orientation="vertical"
45 android:layout_width="0px"
46 android:layout_weight="1"
47 android:layout_height="fill_parent">
48 <!-- TODO: replace with appropratie UI component -->
49 <CheckBox android:id="@+id/time_zone_auto"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:gravity="right|center_horizontal"
53 android:layout_marginBottom="5dip"
54 android:textSize="32dip"
55 android:text="@string/time_zone_auto_stub"/>
57 <!-- text should manually be set. -->
58 <Button android:id="@+id/current_time_zone"
59 android:layout_width="fill_parent"
60 android:layout_height="wrap_content"
61 android:textSize="24dip"
62 android:layout_alignParentTop="true" />
63 <LinearLayout android:id="@+id/zone_picker"
64 android:orientation="vertical"
65 android:layout_width="fill_parent"
66 android:layout_height="fill_parent"
67 android:paddingLeft="10dip"
68 android:paddingBottom="20dip"
69 android:gravity="center"
70 android:visibility="gone"
71 android:clickable="true">
72 <fragment android:id="@+id/zone_picker_fragment"
73 class="com.android.settings.ZonePicker"
74 android:layout_width="fill_parent"
75 android:layout_height="wrap_content" />
79 <!-- Right side: date & time setting -->
80 <LinearLayout android:orientation="vertical"
81 android:layout_width="0px"
82 android:layout_weight="1"
83 android:layout_height="fill_parent">
85 <!-- TODO: replace with appropratie UI component -->
86 <CheckBox android:id="@+id/date_time_auto"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:gravity="right|center_horizontal"
90 android:textSize="32dip"
91 android:text="@string/date_time_auto" />
93 <LinearLayout android:orientation="horizontal"
94 android:layout_width="fill_parent"
95 android:layout_height="wrap_content">
96 <TimePicker android:id="@+id/time_picker"
97 android:layout_width="0px"
98 android:layout_weight=".5"
99 android:layout_height="wrap_content"
100 android:visibility="visible"/>
101 <DatePicker android:id="@+id/date_picker"
102 android:layout_width="0px"
103 android:layout_weight=".5"
104 android:layout_height="wrap_content"/>
109 <LinearLayout android:id="@+id/bottom"
110 android:orientation="horizontal"
111 android:layout_width="fill_parent"
112 android:gravity="center"
113 android:layout_height="wrap_content"
114 android:layout_weight="0">
115 <Button android:id="@+id/skip_button"
116 android:layout_width="300dip"
117 android:layout_height="wrap_content"
118 android:layout_alignParentBottom="true"
119 android:layout_alignParentLeft="true"
120 android:layout_marginRight="50dip"
121 android:textSize="32dip"
122 android:text="@string/skip_label"/>
124 <Button android:id="@+id/next_button"
125 android:layout_width="300dip"
126 android:layout_height="wrap_content"
127 android:layout_alignParentBottom="true"
128 android:layout_alignParentRight="true"
129 android:layout_marginLeft="50dip"
130 android:textSize="32dip"
131 android:text="@string/next_label" />