From 63c90a5512fa5427d924fa2ae21a386d9c2845dc Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Tue, 19 Mar 2013 17:28:01 -0700 Subject: [PATCH] Add grid layout support library samples. These samples are simply ported from the ApiDemos package with package names updated to use the support library implementation instead. Bug: 8175766 Change-Id: Ib24c1250ed7571353f606422734a4660f382b368 --- samples/Support7Demos/AndroidManifest.xml | 24 ++++ .../res/layout-land/grid_layout_2.xml | 64 +++++++++ .../res/layout/grid_layout_1.xml | 47 +++++++ .../res/layout/grid_layout_2.xml | 64 +++++++++ samples/Support7Demos/res/values/colors.xml | 19 +++ samples/Support7Demos/res/values/strings.xml | 6 + .../android/supportv7/view/GridLayout1.java | 34 +++++ .../android/supportv7/view/GridLayout2.java | 33 +++++ .../android/supportv7/view/GridLayout3.java | 129 ++++++++++++++++++ 9 files changed, 420 insertions(+) create mode 100644 samples/Support7Demos/res/layout-land/grid_layout_2.xml create mode 100644 samples/Support7Demos/res/layout/grid_layout_1.xml create mode 100644 samples/Support7Demos/res/layout/grid_layout_2.xml create mode 100644 samples/Support7Demos/res/values/colors.xml create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/view/GridLayout1.java create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/view/GridLayout2.java create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/view/GridLayout3.java diff --git a/samples/Support7Demos/AndroidManifest.xml b/samples/Support7Demos/AndroidManifest.xml index 6d93b62a0..d9ff231d4 100644 --- a/samples/Support7Demos/AndroidManifest.xml +++ b/samples/Support7Demos/AndroidManifest.xml @@ -60,5 +60,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/Support7Demos/res/layout-land/grid_layout_2.xml b/samples/Support7Demos/res/layout-land/grid_layout_2.xml new file mode 100644 index 000000000..49fceaa6f --- /dev/null +++ b/samples/Support7Demos/res/layout-land/grid_layout_2.xml @@ -0,0 +1,64 @@ + + + + + + + + + + +