diff options
| author | Joe Onorato <joeo@android.com> | 2009-05-28 16:31:56 -0700 |
|---|---|---|
| committer | Joe Onorato <joeo@android.com> | 2009-05-28 16:38:52 -0700 |
| commit | a42091afb7b122c753f9050ff5dbcb792eb36a78 (patch) | |
| tree | 8e01b93215bb7ebd5e6796e167c364d6137f9066 /samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java | |
| parent | 1cab4f589b96a40a57205e381cdc4b72e1fa30f0 (diff) | |
Add the FixedGridLayout sample code.
This time with an Android.mk
P.S. Hi from Google I/O!
Diffstat (limited to 'samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java')
| -rw-r--r-- | samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java b/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java new file mode 100644 index 000000000..19c9da7dc --- /dev/null +++ b/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/FixedGridLayoutTest.java @@ -0,0 +1,19 @@ +package com.example.android.fixedgridlayout; + +import android.app.Activity; +import android.os.Bundle; + +public class FixedGridLayoutTest extends Activity +{ + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + + FixedGridLayout grid = (FixedGridLayout)findViewById(R.id.grid); + grid.setCellWidth(80); + grid.setCellHeight(80); + } +} |
