From 51f17d54613c33638c8a2da8affcd9ba35994cb3 Mon Sep 17 00:00:00 2001 From: Philip Milne Date: Mon, 13 Jun 2011 10:44:49 -0700 Subject: Bugfix for GridLayout assuming that the x value of last column index is maximal. This is not the case when column indexes are defined incorrectly and GridLayout should still work in this case. Change-Id: I5deb3fb43ed1dd16dd20868854b96ebae4d30623 --- tests/GridLayoutTest/res/layout/grid3.xml | 12 ++++++++-- .../src/com/android/test/layout/Activity2.java | 28 ++++++++++------------ 2 files changed, 22 insertions(+), 18 deletions(-) (limited to 'tests/GridLayoutTest') diff --git a/tests/GridLayoutTest/res/layout/grid3.xml b/tests/GridLayoutTest/res/layout/grid3.xml index 31dc75a..5cdacf7 100644 --- a/tests/GridLayoutTest/res/layout/grid3.xml +++ b/tests/GridLayoutTest/res/layout/grid3.xml @@ -19,14 +19,17 @@ android:layout_width="match_parent" android:layout_height="match_parent" + android:useDefaultMargins="true" android:marginsIncludedInAlignment="false" + android:columnCount="4" > @@ -34,12 +37,14 @@ @@ -49,6 +54,7 @@ @@ -58,14 +64,15 @@ />