From 7007035ef19e58b6e8dfe14b3ee05dea5753f971 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Thu, 19 Jun 2014 10:57:16 -0700 Subject: [PATCH] Add Shadow demos to ApiDemos bug:15724818 Change-Id: I22e3faaee9bb1d46f9c9f16cac38069071e1fc0b --- samples/ApiDemos/AndroidManifest.xml | 18 ++ samples/ApiDemos/res/drawable/round_rect.xml | 20 ++ .../ApiDemos/res/layout/shadow_card_drag.xml | 58 ++++ .../ApiDemos/res/layout/shadow_card_stack.xml | 55 ++++ samples/ApiDemos/res/values/strings.xml | 5 + .../android/apis/graphics/ShadowCardDrag.java | 249 ++++++++++++++++++ .../apis/graphics/ShadowCardStack.java | 141 ++++++++++ 7 files changed, 546 insertions(+) create mode 100644 samples/ApiDemos/res/drawable/round_rect.xml create mode 100644 samples/ApiDemos/res/layout/shadow_card_drag.xml create mode 100644 samples/ApiDemos/res/layout/shadow_card_stack.xml create mode 100644 samples/ApiDemos/src/com/example/android/apis/graphics/ShadowCardDrag.java create mode 100644 samples/ApiDemos/src/com/example/android/apis/graphics/ShadowCardStack.java diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml index 095d7ee50..7d681cd40 100644 --- a/samples/ApiDemos/AndroidManifest.xml +++ b/samples/ApiDemos/AndroidManifest.xml @@ -2685,6 +2685,24 @@ + + + + + + + + + + + + + + diff --git a/samples/ApiDemos/res/drawable/round_rect.xml b/samples/ApiDemos/res/drawable/round_rect.xml new file mode 100644 index 000000000..6577d142f --- /dev/null +++ b/samples/ApiDemos/res/drawable/round_rect.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/samples/ApiDemos/res/layout/shadow_card_drag.xml b/samples/ApiDemos/res/layout/shadow_card_drag.xml new file mode 100644 index 000000000..c3bc474a9 --- /dev/null +++ b/samples/ApiDemos/res/layout/shadow_card_drag.xml @@ -0,0 +1,58 @@ + + + + + + +