summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-05-13 18:25:29 -0700
committerAdam Powell <adamp@google.com>2012-05-13 18:27:12 -0700
commitee21cab0e684710a77df85577ff16d1f00edaf4d (patch)
treeb12e3aaa012f453a78249263d92f5b429076190a /res
parent9822c2e38ef710936ea13e14d9c993e12797240f (diff)
downloadpackages_apps_packageinstaller-ee21cab0e684710a77df85577ff16d1f00edaf4d.zip
packages_apps_packageinstaller-ee21cab0e684710a77df85577ff16d1f00edaf4d.tar.gz
packages_apps_packageinstaller-ee21cab0e684710a77df85577ff16d1f00edaf4d.tar.bz2
Fix up tabs in the permissions display
Make tab bar scrollable if tabs don't all fit. Scroll the currently selected tab into view when it becomes selected. Bug 6481646 Change-Id: Ic492526ce06fae759b23127f74cfcb8e2fd8f030
Diffstat (limited to 'res')
-rw-r--r--res/layout/install_confirm.xml23
1 files changed, 14 insertions, 9 deletions
diff --git a/res/layout/install_confirm.xml b/res/layout/install_confirm.xml
index 7a35e0c..753a24b 100644
--- a/res/layout/install_confirm.xml
+++ b/res/layout/install_confirm.xml
@@ -47,17 +47,22 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
- <FrameLayout
+ <HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@*android:drawable/tab_unselected_holo">
- <TabWidget
- android:id="@android:id/tabs"
- android:orientation="horizontal"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center" />
- </FrameLayout>
+ android:background="@*android:drawable/tab_unselected_holo"
+ android:fillViewport="true"
+ android:scrollbars="none">
+ <FrameLayout android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+ <TabWidget
+ android:id="@android:id/tabs"
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center" />
+ </FrameLayout>
+ </HorizontalScrollView>
<FrameLayout
android:id="@android:id/tabcontent"