diff options
| author | 2013-04-22 22:26:21 +0000 | |
|---|---|---|
| committer | 2013-04-22 22:26:21 +0000 | |
| commit | a7b2625d43a8e83e3fb47ca261efad6e3f6fcde9 (patch) | |
| tree | f2b340591b2ea0bc219a31a3a30bad3e893aa6a6 | |
| parent | 8d3f3c061709eefe202e0ff7a612fcdf8cfeeb63 (diff) | |
| parent | ca2e9e1122ba8b83d05bd144d0be31e8a3c30537 (diff) | |
Merge "Fix for bug 8578258: GridLayout is forcing wrong width to TextView widgets" into jb-mr2-dev
| -rw-r--r-- | core/java/android/widget/RelativeLayout.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/widget/RelativeLayout.java b/core/java/android/widget/RelativeLayout.java index 3df7258ba44c..906f02dc4a1f 100644 --- a/core/java/android/widget/RelativeLayout.java +++ b/core/java/android/widget/RelativeLayout.java @@ -226,7 +226,12 @@ public class RelativeLayout extends ViewGroup { private boolean mMeasureVerticalWithPaddingMargin = false; // A default width used for RTL measure pass - private static final int DEFAULT_WIDTH = Integer.MAX_VALUE / 2; + /** + * Value reduced so as not to interfere with View's measurement spec. flags. See: + * {@link View#MEASURED_SIZE_MASK}. + * {@link View#MEASURED_STATE_TOO_SMALL}. + **/ + private static final int DEFAULT_WIDTH = 0x008000000; public RelativeLayout(Context context) { super(context); |