OSDN Git Service

am 8ad7abbc: Merge "Corrected return value for updatePreferenceToSpecificActivityOrRe...
[android-x86/packages-apps-Settings.git] / res / layout-sw720dp / date_time_settings_setupwizard.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2011 The Android Open Source Project
3
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
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
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.
15   -->
16 <RelativeLayout
17     android:id="@+id/layout_root"
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     android:orientation="vertical"
20     android:layout_width="match_parent"
21     android:layout_height="match_parent"
22     android:paddingTop="@dimen/datetime_margin_top"
23     android:paddingLeft="@dimen/screen_margin_sides"
24     android:paddingRight="@dimen/screen_margin_sides"
25     android:paddingBottom="@dimen/datetime_margin_bottom">
26
27     <!-- Title: Set date & time-->
28     <TextView
29         android:id="@+id/title"
30         android:layout_width="wrap_content"
31         android:layout_height="wrap_content"
32         android:minHeight="48dip"
33         android:layout_alignParentLeft="true"
34         android:layout_marginLeft="16dip"
35         android:layout_alignParentTop="true"
36         android:textSize="32dip"
37         android:textColor="@color/title_color"
38         android:text="@string/date_and_time_settings_title_setup_wizard"
39         android:gravity="bottom" />
40
41     <!-- Divider -->
42     <View
43         android:id="@+id/top_divider"
44         android:layout_width="match_parent"
45         android:layout_height="3dip"
46         android:layout_below="@id/title"
47         android:layout_marginTop="6dip"
48         android:layout_marginBottom="17dip"
49         android:background="@color/divider_color" />
50
51     <RelativeLayout
52         android:id="@+id/timezone_auto_time"
53         android:layout_width="716dip"
54         android:layout_height="wrap_content"
55         android:layout_centerHorizontal="true"
56         android:layout_below="@id/top_divider">
57         <!-- timezone -->
58         <Button
59             android:id="@+id/time_zone_button"
60             style="?android:attr/dropDownSpinnerStyle"
61             android:layout_width="304dip"
62             android:layout_height="48dip"
63             android:layout_alignParentLeft="true"
64             android:layout_alignBottom="@+id/date_time_auto"
65             android:gravity="left|center_vertical"
66             android:textAppearance="?android:attr/textAppearanceMedium"
67             android:textSize="20dip" />
68
69         <LinearLayout
70             android:id="@+id/date_time_auto"
71             android:layout_width="wrap_content"
72             android:layout_height="wrap_content"
73             android:orientation="vertical"
74             android:layout_toRightOf="@id/time_zone_button"
75             android:layout_marginLeft="32dip"
76             android:layout_alignParentRight="true">
77
78             <Switch
79                 android:id="@+id/date_time_auto_button"
80                 android:layout_width="match_parent"
81                 android:layout_height="wrap_content"
82                 android:minHeight="?android:attr/listPreferredItemHeight"
83                 android:layout_marginLeft="16dip"
84                 android:text="@string/date_time_auto"
85                 android:textAppearance="?android:attr/textAppearanceMedium"
86                 android:textSize="20dip" />
87
88             <!-- Divider -->
89             <View
90                 android:layout_width="match_parent"
91                 android:layout_height="1px"
92                 android:background="@color/divider_color" />
93         </LinearLayout>
94     </RelativeLayout>
95
96     <LinearLayout
97         android:layout_width="624dip"
98         android:layout_height="wrap_content"
99         android:layout_centerHorizontal="true"
100         android:layout_below="@+id/timezone_auto_time"
101         android:layout_marginTop="48dip"
102         android:orientation="horizontal">
103
104         <LinearLayout
105             android:layout_width="312dip"
106             android:layout_height="wrap_content"
107             android:orientation="vertical">
108             <TextView
109                 android:id="@+id/date_picker_title"
110                 android:layout_width="match_parent"
111                 android:layout_height="48dip"
112                 android:text="@string/date_picker_title"
113                 android:textAppearance="?android:attr/textAppearanceMedium"
114                 android:textSize="20dip"
115                 android:clickable="false"
116                 android:longClickable="false"
117                 android:gravity="center" />
118             <DatePicker
119                 android:id="@+id/date_picker"
120                 android:layout_width="match_parent"
121                 android:layout_height="wrap_content"
122                 android:layout_below="@id/date_picker_title" />
123         </LinearLayout>
124
125         <!-- divider -->
126         <View
127             android:id="@+id/center_divider"
128             android:layout_width="1dip"
129             android:layout_height="match_parent"
130             android:background="@color/divider_color" />
131
132         <LinearLayout
133             android:layout_width="312dip"
134             android:layout_height="wrap_content"
135             android:orientation="vertical">
136             <TextView
137                 android:id="@+id/time_picker_title"
138                 android:layout_width="match_parent"
139                 android:layout_height="48dip"
140                 android:text="@string/time_picker_title"
141                 android:textAppearance="?android:attr/textAppearanceMedium"
142                 android:textSize="20dip"
143                 android:gravity="center" />
144
145             <TimePicker
146                 android:id="@+id/time_picker"
147                 android:layout_width="match_parent"
148                 android:layout_height="wrap_content"
149                 android:layout_below="@id/time_picker_title" />
150         </LinearLayout>
151     </LinearLayout>
152
153     <View
154         android:id="@+id/bottom_divider"
155         android:layout_width="match_parent"
156         android:layout_height="3dip"
157         android:layout_alignLeft="@id/timezone_auto_time"
158         android:layout_above="@+id/next_button"
159         android:layout_marginBottom="16dip"
160         android:background="@color/divider_color" />
161
162     <Button
163         android:id="@+id/next_button"
164         style="@style/setup_wizard_button"
165         android:layout_alignParentBottom="true"
166         android:layout_alignParentRight="true"
167         android:text="@string/next_label" />
168 </RelativeLayout>