From 3b3ab0e040ecbeee2f916b969b1044a2b9e222bd Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Mon, 27 Jan 2014 12:39:48 -0800 Subject: [PATCH] Add demo for animating RecyclerView actions Change-Id: Ie076db6646cf734706fe2ea8659ee57f3a7742e9 --- samples/Support7Demos/AndroidManifest.xml | 13 +- .../res/layout/animated_recycler_view.xml | 59 +++ .../res/layout/selectable_item.xml | 19 + samples/Support7Demos/res/values/strings.xml | 10 +- .../widget/AnimatedRecyclerView.java | 457 ++++++++++++++++++ .../widget/RecyclerViewActivity.java | 6 + 6 files changed, 561 insertions(+), 3 deletions(-) create mode 100644 samples/Support7Demos/res/layout/animated_recycler_view.xml create mode 100644 samples/Support7Demos/res/layout/selectable_item.xml create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/widget/AnimatedRecyclerView.java diff --git a/samples/Support7Demos/AndroidManifest.xml b/samples/Support7Demos/AndroidManifest.xml index 0e9ed0b93..6f9b2373e 100644 --- a/samples/Support7Demos/AndroidManifest.xml +++ b/samples/Support7Demos/AndroidManifest.xml @@ -175,8 +175,17 @@ + android:label="@string/recycler_view" + android:theme="@style/Theme.AppCompat"> + + + + + + + diff --git a/samples/Support7Demos/res/layout/animated_recycler_view.xml b/samples/Support7Demos/res/layout/animated_recycler_view.xml new file mode 100644 index 000000000..188a1548b --- /dev/null +++ b/samples/Support7Demos/res/layout/animated_recycler_view.xml @@ -0,0 +1,59 @@ + + + + + + + + +