Merge "Properly respect divider settings for TableLayout" into jb-mr1-dev

This commit is contained in:
Adam Powell
2012-08-23 14:18:22 -07:00
committed by Android (Google) Code Review

View File

@@ -184,6 +184,10 @@ public class TableLayout extends LinearLayout {
mShrinkableColumns = new SparseBooleanArray(); mShrinkableColumns = new SparseBooleanArray();
} }
// TableLayouts are always in vertical orientation; keep this tracked
// for shared LinearLayout code.
setOrientation(VERTICAL);
mPassThroughListener = new PassThroughHierarchyChangeListener(); mPassThroughListener = new PassThroughHierarchyChangeListener();
// make sure to call the parent class method to avoid potential // make sure to call the parent class method to avoid potential
// infinite loops // infinite loops