Also remove status bar code, as we shouldn't touch it here. Bug: 3008295 Change-Id: I1ae3f118eae2cacd135d3ec61f1c27993fe2e166
149 lines
7.1 KiB
XML
149 lines
7.1 KiB
XML
<?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.
|
|
-->
|
|
<!-- TODO: too many LinearLayout. -->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:keepScreenOn="true"
|
|
android:paddingTop="70dip"
|
|
android:paddingBottom="100dip"
|
|
android:paddingLeft="60dip"
|
|
android:paddingRight="60dip">
|
|
|
|
<!-- Title: Set date & time-->
|
|
<TextView android:id="@+id/title"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center"
|
|
android:layout_marginBottom="30dip"
|
|
android:layout_alignParentTop="true"
|
|
android:textSize="64dip"
|
|
android:textColor="#FF99cc00"
|
|
android:text="@string/date_and_time_settings_title"/>
|
|
|
|
<LinearLayout android:id="@+id/main"
|
|
android:orientation="horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1">
|
|
<!-- Left side: time zone setting -->
|
|
<RelativeLayout android:layout_width="0px"
|
|
android:layout_weight="1"
|
|
android:layout_height="fill_parent"
|
|
android:layout_marginRight="50dip">
|
|
<LinearLayout android:id="@+id/timezone"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_alignParentTop="true">
|
|
|
|
<!--
|
|
<CheckBox android:id="@+id/time_zone_auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="right|center_horizontal"
|
|
android:layout_marginBottom="5dip"
|
|
android:textSize="32dip"
|
|
android:text="@string/time_zone_auto_stub"/> -->
|
|
|
|
<!-- text should manually be set. -->
|
|
<Button android:id="@+id/current_time_zone"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="24dip"
|
|
android:layout_alignParentTop="true" />
|
|
<LinearLayout android:id="@+id/zone_picker"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="350dip"
|
|
android:paddingLeft="10dip"
|
|
android:paddingBottom="20dip"
|
|
android:gravity="center"
|
|
android:visibility="gone"
|
|
android:clickable="true">
|
|
<fragment android:id="@+id/zone_picker_fragment"
|
|
class="com.android.settings.ZonePicker"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<Button android:id="@+id/skip_button"
|
|
android:layout_width="300dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:textSize="32dip"
|
|
android:text="@string/skip_label"/>
|
|
</RelativeLayout>
|
|
|
|
<!-- Right side: date & time setting -->
|
|
<RelativeLayout android:layout_width="0px"
|
|
android:layout_weight="1"
|
|
android:layout_height="fill_parent"
|
|
android:layout_marginLeft="50dip">
|
|
<LinearLayout android:id="@+id/datetime"
|
|
android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_alignParentTop="true">
|
|
|
|
<CheckBox android:id="@+id/date_time_auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="right|center_horizontal"
|
|
android:textSize="32dip"
|
|
android:text="@string/date_time_auto" />
|
|
|
|
<LinearLayout android:orientation="horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content">
|
|
<TimePicker android:id="@+id/time_picker"
|
|
android:layout_width="0px"
|
|
android:layout_weight=".5"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible"/>
|
|
<DatePicker android:id="@+id/date_picker"
|
|
android:layout_width="0px"
|
|
android:layout_weight=".5"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<Button android:id="@+id/next_button"
|
|
android:layout_width="300dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:textSize="32dip"
|
|
android:text="@string/next_label" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@+id/bottom"
|
|
android:orientation="horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:gravity="center"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0">
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|