diff options
author | Philip Milne <pmilne@google.com> | 2011-07-15 15:39:07 -0700 |
---|---|---|
committer | Philip Milne <pmilne@google.com> | 2011-07-18 14:38:14 -0700 |
commit | b0ce49b5ad53631ff0c3cdd8266e82f3c20c65dc (patch) | |
tree | 315345a76c849454b5a2fe81d183e973611e9355 /tests/GridLayoutTest | |
parent | 901e022c0c0923867e60c681f70412cfe6179e60 (diff) | |
download | frameworks_base-b0ce49b5ad53631ff0c3cdd8266e82f3c20c65dc.zip frameworks_base-b0ce49b5ad53631ff0c3cdd8266e82f3c20c65dc.tar.gz frameworks_base-b0ce49b5ad53631ff0c3cdd8266e82f3c20c65dc.tar.bz2 |
Derive GridLayout's 'gap' constants from new "default_gap" entry in dimens.xml.
Also:
. removed static import of R.styleable - this is non-standard
. removed final modifier from DEBUG flag,
this prevents the compiler from excluding the debugging code but
allows debugging code to be enabled externally
. added override to removeAllViews() as GridLayout needs to be notified whever hiearchy changes.
Change-Id: I2409289bce7c6638eff320ffd48a6c0704e77fa8
Diffstat (limited to 'tests/GridLayoutTest')
-rw-r--r-- | tests/GridLayoutTest/src/com/android/test/layout/Activity2.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java b/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java index af5006f..38a85a3 100644 --- a/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java +++ b/tests/GridLayoutTest/src/com/android/test/layout/Activity2.java @@ -95,9 +95,7 @@ public class Activity2 extends Activity { } { Space v = new Space(context); - { - vg.addView(v, new LayoutParams(row5, col3)); - } + vg.addView(v, new LayoutParams(row5, col3)); } { Button v = new Button(context); |