Skip to content

Commit 11a03af

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Properly respect divider settings for TableLayout" into jb-mr1-dev
2 parents 865a175 + c3c0e39 commit 11a03af

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)