diff options
author | Maurice Lam <yukl@google.com> | 2014-07-17 20:35:15 -0700 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2014-07-23 14:10:46 -0700 |
commit | 068354a1bb39b7a1111c2aff84ed5428866e9601 (patch) | |
tree | 33038c8e6fc0f179e69dabd5733c3947813e2588 /res/layout-sw600dp-land | |
parent | 1f53937469095f268d4c7a21d93f821a341a151d (diff) | |
download | packages_apps_Settings-068354a1bb39b7a1111c2aff84ed5428866e9601.zip packages_apps_Settings-068354a1bb39b7a1111c2aff84ed5428866e9601.tar.gz packages_apps_Settings-068354a1bb39b7a1111c2aff84ed5428866e9601.tar.bz2 |
[WifiSetup] Tablet landscape layout
Created setup_preference for sw600dp-land, modeled after
template_with_header in Setup Wizard. Copied over wide illustration,
which is again a placeholder and needs real graphics from UX.
Renamed SetupWizardHeader to SetupWizardIllustration. Added
aspectRatio attribute to SetupWizardIllustration that, will set the
aspect ratio of the top padding. If 0 or not specified, padding will
not be set.
Bug: 16349429
Change-Id: Ic2623ee0c0ee8864383d22da006b418b8c371bf0
Diffstat (limited to 'res/layout-sw600dp-land')
-rw-r--r-- | res/layout-sw600dp-land/setup_preference.xml | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/res/layout-sw600dp-land/setup_preference.xml b/res/layout-sw600dp-land/setup_preference.xml new file mode 100644 index 0000000..90bd443 --- /dev/null +++ b/res/layout-sw600dp-land/setup_preference.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2014 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:id="@+id/fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.settings.widget.SetupWizardIllustration + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1" + android:foreground="@drawable/illustration_wifi_wide" + android:background="@drawable/grass"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="start|top" + android:weightSum="16"> + + <TextView + android:id="@+id/title" + style="@style/SetupCardTitle" + android:text="@string/wifi_setup_wizard_title"/> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/setup_wizard_card_margin_top" + android:layout_weight="8" + android:background="?android:attr/colorBackground" + android:elevation="@dimen/setup_wizard_card_elevation" + android:orientation="vertical"> + + <TextView + android:id="@+id/wifi_required_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="6dp" + android:text="@string/wifi_required_info_text" + android:textAppearance="?android:attr/textAppearanceMedium" + android:visibility="gone" /> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:cacheColorHint="@android:color/transparent" + android:clipToPadding="false" + android:drawSelectorOnTop="false" + android:headerDividersEnabled="false" + android:scrollbarAlwaysDrawVerticalTrack="true" /> + + </LinearLayout> + + </LinearLayout> + + </com.android.settings.widget.SetupWizardIllustration> + + <fragment android:name="com.android.setupwizard.navigationbar.SetupWizardNavBar" + android:id="@+id/navigation_bar" + style="@style/setup_wizard_navbar_style" /> + +</LinearLayout> + |