diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/GridLayoutTest/res/layout/grid3.xml | 2 | ||||
| -rw-r--r-- | tests/GridLayoutTest/src/com/android/test/layout/Activity2.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/GridLayoutTest/res/layout/grid3.xml b/tests/GridLayoutTest/res/layout/grid3.xml index 5cdacf7..ba911c2 100644 --- a/tests/GridLayoutTest/res/layout/grid3.xml +++ b/tests/GridLayoutTest/res/layout/grid3.xml @@ -21,7 +21,7 @@ android:layout_height="match_parent" android:useDefaultMargins="true" - android:marginsIncludedInAlignment="false" + android:alignmentMode="alignBounds" android:columnCount="4" > diff --git a/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java b/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java index 32365d7..e010a00 100644 --- a/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java +++ b/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java @@ -36,7 +36,7 @@ public class Activity2 extends Activity { public static View create(Context context) { GridLayout vg = new GridLayout(context); vg.setUseDefaultMargins(true); - vg.setMarginsIncludedInAlignment(false); + vg.setAlignmentMode(ALIGN_BOUNDS); Group row1 = new Group(1, CENTER); Group row2 = new Group(2, CENTER); |
