summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorRoger Olsson <roger.olsson@sonyericsson.com>2010-10-26 14:41:01 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-10-26 14:41:01 +0200
commita7e77546ca9e408373b7718aaf807bbbb5097cbe (patch)
treeb24232035c9a0205ed814626527c8588d3542999 /core/res
parentb4ae2f1ba419212224d53db81c46ad242bebd17b (diff)
downloadframeworks_base-a7e77546ca9e408373b7718aaf807bbbb5097cbe.zip
frameworks_base-a7e77546ca9e408373b7718aaf807bbbb5097cbe.tar.gz
frameworks_base-a7e77546ca9e408373b7718aaf807bbbb5097cbe.tar.bz2
TabWidget orientation
TabWidget orientation specified in tab_content.xml instead of TabWidget.java. Generally, the orientation of the TabWidget should be set in xml-files and not in TabWidget.java. A sub class of TabActivity may call setContentView() using a custom layout where the TabWidget orientation is vertical. This is the case in the UI Enablers Bottom Tab feature, for landscape display orientation. Change-Id: Ia677441a0af96a8d2ab47ef3298eb440c34924f6
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/layout/tab_content.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/res/res/layout/tab_content.xml b/core/res/res/layout/tab_content.xml
index 0ee87ce..79147fb 100644
--- a/core/res/res/layout/tab_content.xml
+++ b/core/res/res/layout/tab_content.xml
@@ -22,8 +22,9 @@
android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent">
- <TabWidget android:id="@android:id/tabs" android:layout_width="match_parent"
- android:layout_height="wrap_content" android:layout_weight="0" />
+ <TabWidget android:id="@android:id/tabs"
+ android:orientation="horizontal" android:layout_width="match_parent"
+ android:layout_height="wrap_content" android:layout_weight="0" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="match_parent" android:layout_height="0dip"
android:layout_weight="1"/>