summaryrefslogtreecommitdiffstats
path: root/res/layout-sw600dp/date_time_settings_setupwizard.xml
blob: dae03ac45c0f5602dcf431ccf2f01e0a17fa85fd (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
  -->
<RelativeLayout
    android:id="@+id/layout_root"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="@dimen/datetime_margin_top"
    android:paddingLeft="@dimen/screen_margin_sides"
    android:paddingRight="@dimen/screen_margin_sides"
    android:paddingBottom="@dimen/datetime_margin_bottom">

    <!-- Title: Set date & time-->
    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:minHeight="48dip"
        android:layout_alignParentLeft="true"
        android:layout_marginLeft="16dip"
        android:layout_alignParentTop="true"
        android:textSize="32dip"
        android:textColor="#FF99cc00"
        android:text="@string/date_and_time_settings_title_setup_wizard"
        android:gravity="bottom" />

    <!-- Divider -->
    <View
        android:id="@+id/top_divider"
        android:layout_width="match_parent"
        android:layout_height="3dip"
        android:layout_below="@id/title"
        android:layout_marginTop="6dip"
        android:layout_marginBottom="17dip"
        android:background="@color/divider_color" />

    <RelativeLayout
        android:id="@+id/timezone_auto_time"
        android:layout_width="716dip"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_below="@id/top_divider">
        <!-- timezone -->
        <Button
            android:id="@+id/time_zone_button"
            style="?android:attr/dropDownSpinnerStyle"
            android:layout_width="304dip"
            android:layout_height="48dip"
            android:layout_alignParentLeft="true"
            android:layout_alignBottom="@+id/date_time_auto"
            android:gravity="left|center_vertical"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textSize="20dip" />

        <LinearLayout
            android:id="@+id/date_time_auto"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_toRightOf="@id/time_zone_button"
            android:layout_marginLeft="32dip"
            android:layout_alignParentRight="true">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@id/time_zone_button"
                android:layout_alignParentRight="true">

                <TextView
                    android:id="@+id/date_time_auto_text"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:minHeight="?android:attr/listPreferredItemHeight"
                    android:layout_marginLeft="16dip"
                    android:text="@string/date_time_auto"
                    android:textAppearance="?android:attr/textAppearanceMedium"
                    android:textSize="20dip"
                    android:layout_alignParentLeft="true"
                    android:layout_toLeftOf="@+id/date_time_auto_button"
                    android:gravity="left|center_vertical" />

                <CheckBox
                    android:id="@+id/date_time_auto_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_alignParentRight="true" />
            </RelativeLayout>

            <!--
            <Switch
                android:id="@+id/date_time_auto_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:minHeight="?android:attr/listPreferredItemHeight"
                android:layout_marginLeft="16dip"
                android:text="@string/date_time_auto"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textSize="20dip" /> -->

            <!-- Divider -->
            <View
                android:layout_width="match_parent"
                android:layout_height="1px"
                android:background="@color/divider_color" />
        </LinearLayout>
    </RelativeLayout>

    <LinearLayout
        android:layout_width="624dip"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_below="@+id/timezone_auto_time"
        android:layout_marginTop="48dip"
        android:orientation="horizontal">

        <LinearLayout
            android:layout_width="312dip"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <TextView
                android:id="@+id/date_picker_title"
                android:layout_width="match_parent"
                android:layout_height="48dip"
                android:text="@string/date_picker_title"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textSize="20dip"
                android:clickable="false"
                android:longClickable="false"
                android:gravity="center" />
            <DatePicker
                android:id="@+id/date_picker"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/date_picker_title" />
        </LinearLayout>

        <!-- divider -->
        <View
            android:id="@+id/center_divider"
            android:layout_width="1dip"
            android:layout_height="match_parent"
            android:background="@color/divider_color" />

        <LinearLayout
            android:layout_width="312dip"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <TextView
                android:id="@+id/time_picker_title"
                android:layout_width="match_parent"
                android:layout_height="48dip"
                android:text="@string/time_picker_title"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textSize="20dip"
                android:gravity="center" />

            <TimePicker
                android:id="@+id/time_picker"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/time_picker_title" />
        </LinearLayout>
    </LinearLayout>

    <View
        android:id="@+id/bottom_divider"
        android:layout_width="match_parent"
        android:layout_height="3dip"
        android:layout_alignLeft="@id/timezone_auto_time"
        android:layout_above="@+id/next_button"
        android:layout_marginBottom="16dip"
        android:background="@color/divider_color" />

    <Button
        android:id="@+id/next_button"
        style="@style/setup_wizard_button"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:text="@string/next_label" />
</RelativeLayout>