Skip to content

Commit 5b4d0e8

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "TabWidget orientation"
2 parents b6db2d5 + a7e7754 commit 5b4d0e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/java/android/widget/TabWidget.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ protected int getChildDrawingOrder(int childCount, int i) {
106106
}
107107

108108
private void initTabWidget() {
109-
setOrientation(LinearLayout.HORIZONTAL);
110109
mGroupFlags |= FLAG_USE_CHILD_DRAWING_ORDER;
111110

112111
final Context context = mContext;

core/res/res/layout/tab_content.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
android:layout_width="match_parent" android:layout_height="match_parent">
2323
<LinearLayout android:orientation="vertical"
2424
android:layout_width="match_parent" android:layout_height="match_parent">
25-
<TabWidget android:id="@android:id/tabs" android:layout_width="match_parent"
26-
android:layout_height="wrap_content" android:layout_weight="0" />
25+
<TabWidget android:id="@android:id/tabs"
26+
android:orientation="horizontal" android:layout_width="match_parent"
27+
android:layout_height="wrap_content" android:layout_weight="0" />
2728
<FrameLayout android:id="@android:id/tabcontent"
2829
android:layout_width="match_parent" android:layout_height="0dip"
2930
android:layout_weight="1"/>

0 commit comments

Comments
 (0)