diff options
Diffstat (limited to 'res/layout-xlarge')
-rw-r--r-- | res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml | 29 | ||||
-rw-r--r-- | res/layout-xlarge/date_time_settings_setupwizard.xml | 148 | ||||
-rw-r--r-- | res/layout-xlarge/settings_top_level.xml | 33 | ||||
-rw-r--r-- | res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml | 156 |
4 files changed, 366 insertions, 0 deletions
diff --git a/res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml b/res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml new file mode 100644 index 0000000..4d52deb --- /dev/null +++ b/res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingRight="?android:attr/scrollbarSize"> + + <LinearLayout android:id="@+android:id/widget_frame" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center_vertical" + android:orientation="vertical" /> + +</LinearLayout> diff --git a/res/layout-xlarge/date_time_settings_setupwizard.xml b/res/layout-xlarge/date_time_settings_setupwizard.xml new file mode 100644 index 0000000..254428f --- /dev/null +++ b/res/layout-xlarge/date_time_settings_setupwizard.xml @@ -0,0 +1,148 @@ +<?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> diff --git a/res/layout-xlarge/settings_top_level.xml b/res/layout-xlarge/settings_top_level.xml new file mode 100644 index 0000000..09590b1 --- /dev/null +++ b/res/layout-xlarge/settings_top_level.xml @@ -0,0 +1,33 @@ +<?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. +--> + +<!-- Top-level Settings layout with fragments. --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <fragment class="com.android.settings.Settings$TopLevelSettings" + android:id="@+id/top_level" + android:layout_width="0px" + android:layout_height="match_parent" + android:layout_weight=".4" + android:layout_marginRight="10dp"/> + <FrameLayout android:id="@+id/prefs" + android:layout_width="0px" + android:layout_height="match_parent" + android:layout_weight=".6" /> +</LinearLayout> diff --git a/res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml b/res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml new file mode 100644 index 0000000..a22cd46 --- /dev/null +++ b/res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml @@ -0,0 +1,156 @@ +<?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. + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:keepScreenOn="true" + android:paddingTop="140dip" + android:paddingBottom="60dip" + android:paddingLeft="60dip" + android:paddingRight="60dip"> + + <!-- Left: almost empty with one title at the top --> + <RelativeLayout android:orientation="vertical" + android:layout_width="0px" + android:layout_weight=".3" + android:layout_height="fill_parent" + android:paddingRight="50dip" + android:paddingBottom="10dip"> + <TextView android:id="@+id/wifi_setup_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:gravity="right" + android:textSize="48dip" + android:textColor="#FF99cc00" + android:text="@string/wifi_setup_title"/> + <Button android:id="@+id/wifi_setup_cancel" + android:layout_width="220dip" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:textSize="24dip" + android:text="@string/wifi_cancel" + android:visibility="gone" /> + </RelativeLayout> + + <!-- Center: fragment --> + <LinearLayout android:orientation="vertical" + android:layout_width="0px" + android:layout_weight=".4" + android:layout_height="fill_parent" + android:paddingTop="80dip" + android:paddingLeft="50dip" + android:paddingRight="50dip" + android:paddingBottom="15dip"> + <!-- divider --> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginBottom="4dip" + android:background="@color/divider_color" /> + <!-- Assume the text size of this text should be same as Preference's + texts. See also preference.xml --> + <TextView android:id="@+id/wifi_setup_status" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="#00000000" + android:textColor="#ff666666" + android:paddingLeft="5dip" + android:textAppearance="?android:attr/textAppearanceLarge" + android:text="@string/wifi_setup_status_select_network"/> + <!-- divider --> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_marginTop="4dip" + android:layout_marginBottom="20dip" + android:background="@color/divider_color" /> + <fragment class="com.android.settings.wifi.WifiSettings" + android:id="@+id/wifi_setup_fragment" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + </LinearLayout> + + <!-- Right: various information --> + <RelativeLayout android:orientation="vertical" + android:layout_width="0px" + android:layout_weight=".3" + android:layout_height="fill_parent" + android:gravity="right" + android:paddingTop="22dip" + android:paddingRight="50dip" + android:paddingBottom="10dip"> + <TextView android:id="@+id/scanning_progress_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:gravity="right" + android:textSize="22dip" + android:textColor="#ff40520f" /> + <ProgressBar android:id="@+id/scanning_progress_bar" + android:layout_width="220dip" + android:layout_height="wrap_content" + android:layout_below="@id/scanning_progress_text" + style="?android:attr/progressBarStyleHorizontal" /> + + <Button android:id="@+id/wifi_setup_connect" + android:layout_width="260dip" + android:layout_height="60dip" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" + android:textSize="24dip" + android:text="@string/wifi_connect" + android:visibility="gone" /> + <Button android:id="@+id/wifi_setup_forget" + android:layout_width="260dip" + android:layout_height="60dip" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" + android:textSize="24dip" + android:text="@string/wifi_forget" + android:visibility="gone" /> + + <Button android:id="@+id/wifi_setup_add_network" + android:layout_width="260dip" + android:layout_height="60dip" + android:layout_above="@+id/wifi_setup_refresh_list" + android:layout_alignParentRight="true" + android:textSize="24dip" + android:text="@string/wifi_setup_add_network" + android:enabled="false" /> + + <Button android:id="@+id/wifi_setup_refresh_list" + android:layout_width="260dip" + android:layout_height="60dip" + android:layout_above="@+id/wifi_setup_skip_or_next" + android:layout_alignParentRight="true" + android:textSize="24dip" + android:text="@string/wifi_setup_refresh_list" + android:enabled="false" /> + + <Button android:id="@+id/wifi_setup_skip_or_next" + android:layout_width="260dip" + android:layout_height="60dip" + android:layout_marginTop="30dip" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" + android:textSize="24dip" + android:text="@string/wifi_setup_skip" + android:enabled="false" /> + </RelativeLayout> +</LinearLayout> |