From aa616f31fe7c0c8e3657bb9a5889ec5e56ee5232 Mon Sep 17 00:00:00 2001 From: Philip Milne Date: Fri, 27 May 2011 18:38:01 -0700 Subject: Response to code review for GridLayout: . Fixed spelling. . Added comments on internal methods. . Adopted the suggested internal name changes to improve clarity. . Added UNDEFINED constant to public API to avoid making reference to Integer.MAX_VALUE in docs. . Added final everywhere, then removed it. . Make the Interval class package private so that it can be put somewhere more general later. . Tidy code, removing maximize flag throughout. . Remove last of allocations taking place during layout. . Implement measureChild() etc. . Added LinearLayout alignment compatibility mode, and made it the default. Change-Id: I6a4ffa022d97d68138d1903d3830a20278815435 https://android-git.corp.google.com/g/#change,109891 --- tests/GridLayoutTest/src/com/android/test/layout/Activity2.java | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/GridLayoutTest/src/com/android/test/layout/Activity2.java') diff --git a/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java b/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java index 6359903..5e29cf1 100644 --- a/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java +++ b/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java @@ -32,6 +32,7 @@ public class Activity2 extends Activity { public static View create(Context context) { GridLayout vg = new GridLayout(context); vg.setUseDefaultMargins(true); + vg.setMarginsIncludedInAlignment(false); Group row1 = new Group(1, CENTER); Group row2 = new Group(2, CENTER); -- cgit v1.1