Files
app_Settings/res/layout-xlarge/date_time_settings_setupwizard.xml
Daisuke Miyakawa da40cc28d9 Remove skip button from datetime settings
Also force landscape mode in XLarge screen.

Bug: 3285153
Change-Id: I9f4a0de6a36d0be2b5f80b734a4910f4bb154905
2010-12-15 11:56:35 -08:00

152 lines
5.7 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. -->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="60dip"
android:paddingLeft="100dip"
android:paddingRight="100dip"
android:paddingBottom="40dip">
<!-- Title: Set date & time-->
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:textSize="40dip"
android:textColor="#FF99cc00"
android:text="@string/date_and_time_settings_title"/>
<!-- Divider -->
<View
android:id="@+id/top_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_below="@id/title"
android:background="@color/divider_color"
android:layout_marginBottom="5dip" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/top_divider"
android:layout_alignParentLeft="true"
android:layout_marginTop="60dip"
android:orientation="horizontal">
<!-- left: timezone -->
<LinearLayout
android:layout_width="0px"
android:layout_weight=".48"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- text should manually be set. -->
<Button
android:id="@+id/time_zone_button"
android:layout_width="400dip"
android:layout_height="60dip"
android:textSize="24dip" />
<!-- <LinearLayout android:id="@+id/zone_picker"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="350dip"
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>
<!-- spacer on center -->
<View
android:layout_width="0px"
android:layout_weight=".04"
android:layout_height="0dip"
android:visibility="invisible" />
<!-- right: DateTime -->
<RelativeLayout
android:layout_width="0px"
android:layout_weight=".48"
android:layout_height="wrap_content">
<CheckBox
android:id="@+id/date_time_auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="left"
android:textSize="22dip"
android:text="@string/date_time_auto" />
<!-- Divider -->
<View
android:id="@+id/datetime_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_below="@id/date_time_auto"
android:background="@color/divider_color"
android:layout_marginTop="15dip"
android:layout_marginBottom="80dip" />
<TimePicker
android:id="@+id/time_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/datetime_divider" />
<DatePicker
android:id="@+id/date_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/datetime_divider" />
</RelativeLayout>
</LinearLayout>
<!-- TODO: remove this button when we are sure it is needless -->
<Button
android:id="@+id/skip_button"
android:layout_width="250dip"
android:layout_height="80dip"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/next_button"
android:layout_marginRight="20dip"
android:textSize="24dip"
android:text="@string/skip_label"
android:visibility="gone" />
<Button
android:id="@+id/next_button"
android:layout_width="250dip"
android:layout_height="80dip"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:textSize="24dip"
android:text="@string/next_label" />
</RelativeLayout>