summaryrefslogtreecommitdiffstats
path: root/tests/GridLayoutTest/res
diff options
context:
space:
mode:
authorPhilip Milne <pmilne@google.com>2011-06-13 10:44:49 -0700
committerPhilip Milne <pmilne@google.com>2011-06-13 10:44:49 -0700
commit51f17d54613c33638c8a2da8affcd9ba35994cb3 (patch)
tree06e4240a72a2528dcfe3e21c8a2c4f19bbedcac6 /tests/GridLayoutTest/res
parent60f36a52ac57018d33b284ee5b4f71ba869f54f0 (diff)
downloadframeworks_base-51f17d54613c33638c8a2da8affcd9ba35994cb3.zip
frameworks_base-51f17d54613c33638c8a2da8affcd9ba35994cb3.tar.gz
frameworks_base-51f17d54613c33638c8a2da8affcd9ba35994cb3.tar.bz2
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
Diffstat (limited to 'tests/GridLayoutTest/res')
-rw-r--r--tests/GridLayoutTest/res/layout/grid3.xml12
1 files changed, 10 insertions, 2 deletions
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"
>
<TextView
android:text="Email account"
android:textSize="48dip"
+
android:layout_columnSpan="4"
android:layout_gravity="center_horizontal"
/>
@@ -34,12 +37,14 @@
<TextView
android:text="You can configure email in just a few steps:"
android:textSize="20dip"
+
android:layout_columnSpan="4"
android:layout_gravity="left"
/>
<TextView
android:text="Email address:"
+
android:layout_gravity="right"
/>
@@ -49,6 +54,7 @@
<TextView
android:text="Password:"
+
android:layout_column="0"
android:layout_gravity="right"
/>
@@ -58,14 +64,15 @@
/>
<Space
- android:layout_rowWeight="1"
- android:layout_columnWeight="1"
android:layout_row="4"
android:layout_column="2"
+ android:layout_rowWeight="1"
+ android:layout_columnWeight="1"
/>
<Button
android:text="Manual setup"
+
android:layout_row="5"
android:layout_column="3"
android:layout_gravity="fill_horizontal"
@@ -73,6 +80,7 @@
<Button
android:text="Next"
+
android:layout_column="3"
android:layout_gravity="fill_horizontal"
/>