diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-05-02 16:56:14 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-05-03 18:30:27 -0700 |
commit | 9762658939747166e3c40d817971aa5b17231ee7 (patch) | |
tree | 2bccf0cd8875f7babb07457b82c0835abe0c23a5 /res/layout | |
parent | 7a39280f3a8e33b592a8b113ec0bc62638ad7247 (diff) | |
download | android_packages_apps_PackageInstaller-9762658939747166e3c40d817971aa5b17231ee7.tar.gz android_packages_apps_PackageInstaller-9762658939747166e3c40d817971aa5b17231ee7.tar.bz2 android_packages_apps_PackageInstaller-9762658939747166e3c40d817971aa5b17231ee7.zip |
New permissions UI.
Change-Id: I5d4691f8a23e90265eaaaea15950affdcb8dc9b6
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/install_confirm.xml | 63 | ||||
-rw-r--r-- | res/layout/label.xml | 20 |
2 files changed, 54 insertions, 29 deletions
diff --git a/res/layout/install_confirm.xml b/res/layout/install_confirm.xml index 0eb8ba6b..5e4aced8 100644 --- a/res/layout/install_confirm.xml +++ b/res/layout/install_confirm.xml @@ -25,9 +25,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingLeft="8dip" - android:paddingRight="8dip"> + android:layout_height="match_parent"> <TextView android:id="@+id/install_confirm_question" @@ -36,38 +34,46 @@ android:text="@string/install_confirm_question" android:textAppearance="?android:attr/textAppearanceMedium" style="@style/padded" - android:paddingTop="12dip" - android:paddingBottom="16dip"/> + android:paddingTop="12dip" /> - <ScrollView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fillViewport="true" - android:layout_weight="1"> + <TabHost + android:id="@android:id/tabhost" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1"> - <!-- Security settings description. --> <LinearLayout - android:id="@+id/permissions_section" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginRight="?android:attr/scrollbarSize" - style="@style/padded" - android:orientation="vertical"> - <TextView - android:id="@+id/security_settings_desc" - android:text="@string/security_settings_desc" + android:background="@*android:drawable/tab_unselected_holo"> + <TabWidget + android:id="@android:id/tabs" + android:orientation="horizontal" + android:measureWithLargestChild="false" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceMedium" - /> - <LinearLayout - android:id="@+id/security_settings_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="1.0" - android:orientation="vertical"/> + android:layout_gravity="center" /> + </FrameLayout> + + <FrameLayout + android:id="@android:id/tabcontent" + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="0"/> + + <android.support.v4.view.ViewPager + android:id="@+id/pager" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1"/> + </LinearLayout> - </ScrollView> + </TabHost> <!-- OK confirm and cancel buttons. --> <LinearLayout @@ -75,8 +81,7 @@ android:layout_height="wrap_content" android:orientation="vertical" android:divider="?android:attr/dividerHorizontal" - android:showDividers="beginning" - android:paddingTop="16dip"> + android:showDividers="beginning"> <LinearLayout style="?android:attr/buttonBarStyle" diff --git a/res/layout/label.xml b/res/layout/label.xml new file mode 100644 index 00000000..8d176fb5 --- /dev/null +++ b/res/layout/label.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> + +<TextView + xmlns:android="http://schemas.android.com/apk/res/android" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center" /> |