Skip to content

Commit c3c0e39

Browse files
committed
Properly respect divider settings for TableLayout
Make sure that TableLayout always knows it's in VERTICAL orientation. Bug 7041351 Change-Id: I9935891a58e558840ac7956a0ffe8448e21de799
1 parent 41d4332 commit c3c0e39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/java/android/widget/TableLayout.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ private void initTableLayout() {
184184
mShrinkableColumns = new SparseBooleanArray();
185185
}
186186

187+
// TableLayouts are always in vertical orientation; keep this tracked
188+
// for shared LinearLayout code.
189+
setOrientation(VERTICAL);
190+
187191
mPassThroughListener = new PassThroughHierarchyChangeListener();
188192
// make sure to call the parent class method to avoid potential
189193
// infinite loops

0 commit comments

Comments
 (0)