summaryrefslogtreecommitdiffstats
path: root/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java
diff options
context:
space:
mode:
authorPhilip Milne <pmilne@google.com>2011-05-27 18:38:01 -0700
committerPhilip Milne <pmilne@google.com>2011-06-03 13:22:52 -0700
commitaa616f31fe7c0c8e3657bb9a5889ec5e56ee5232 (patch)
tree7ed5a6e67f38bf2bd7264417a41508d5ca23dca9 /tests/GridLayoutTest/src/com/android/test/layout/Activity2.java
parentb2450ce105086d1ac82d273a5292d9581c6ddec4 (diff)
downloadframeworks_base-aa616f31fe7c0c8e3657bb9a5889ec5e56ee5232.zip
frameworks_base-aa616f31fe7c0c8e3657bb9a5889ec5e56ee5232.tar.gz
frameworks_base-aa616f31fe7c0c8e3657bb9a5889ec5e56ee5232.tar.bz2
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
Diffstat (limited to 'tests/GridLayoutTest/src/com/android/test/layout/Activity2.java')
-rw-r--r--tests/GridLayoutTest/src/com/android/test/layout/Activity2.java1
1 files changed, 1 insertions, 0 deletions
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);