diff options
author | Philip Milne <pmilne@google.com> | 2012-09-27 14:38:46 -0700 |
---|---|---|
committer | Philip Milne <pmilne@google.com> | 2012-09-27 14:46:36 -0700 |
commit | ad365cc217c989c3b688ae839d6f94ee8889a84e (patch) | |
tree | d238148b698d57c315654942acefc3339f1bb28b /core/java/android/widget/TableRow.java | |
parent | 3cc8211ecd61c8568f182de5fb615d880e889ff9 (diff) | |
download | frameworks_base-ad365cc217c989c3b688ae839d6f94ee8889a84e.zip frameworks_base-ad365cc217c989c3b688ae839d6f94ee8889a84e.tar.gz frameworks_base-ad365cc217c989c3b688ae839d6f94ee8889a84e.tar.bz2 |
Optical bounds support for LinearLayout, TableLayout and TableRow.
The generic support for optical bounds provided in:
https://googleplex-android-review.googlesource.com/#/c/228269/
did not work correctly for nested LinearLayouts. With this fix
all the layouts in the APIdemos now seem to layout correctly
when the optical bounds mode is enabled.
(There's currently no, user level, way to do this. Instead, the
optical bounds layout mode has to be enabled on a per view basis.)
Change-Id: Id3d1d84445a8a2df277ddfe679c42f2d6cf775f4
Diffstat (limited to 'core/java/android/widget/TableRow.java')
-rw-r--r-- | core/java/android/widget/TableRow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/TableRow.java b/core/java/android/widget/TableRow.java index db3853f..a1527d5 100644 --- a/core/java/android/widget/TableRow.java +++ b/core/java/android/widget/TableRow.java @@ -120,7 +120,7 @@ public class TableRow extends LinearLayout { @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { // enforce horizontal layout - layoutHorizontal(); + layoutHorizontal(l, t, r, b); } /** |