From 575a279f350bc0c6bffa2a4a5b354f3f7c68e6df Mon Sep 17 00:00:00 2001 From: Laavanye Bahl Date: Sun, 6 Mar 2016 04:27:23 +0530 Subject: [PATCH] Sliding animation in Items of RecyclerView Signed-off-by: Laavanye Bahl --- app/src/main/res/anim/slide_in.xml | 8 ++++++++ app/src/main/res/anim/slide_in_gogo.xml | 5 +++++ app/src/main/res/layout/recycler_view.xml | 1 + 3 files changed, 14 insertions(+) create mode 100644 app/src/main/res/anim/slide_in.xml create mode 100644 app/src/main/res/anim/slide_in_gogo.xml diff --git a/app/src/main/res/anim/slide_in.xml b/app/src/main/res/anim/slide_in.xml new file mode 100644 index 00000000..33bb9ff4 --- /dev/null +++ b/app/src/main/res/anim/slide_in.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/anim/slide_in_gogo.xml b/app/src/main/res/anim/slide_in_gogo.xml new file mode 100644 index 00000000..b7d78dcf --- /dev/null +++ b/app/src/main/res/anim/slide_in_gogo.xml @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/recycler_view.xml b/app/src/main/res/layout/recycler_view.xml index 196f3c47..f11f0fc7 100755 --- a/app/src/main/res/layout/recycler_view.xml +++ b/app/src/main/res/layout/recycler_view.xml @@ -8,5 +8,6 @@ android:padding="8dp" android:scrollbarSize="4dp" android:scrollbarStyle="outsideOverlay" + android:layoutAnimation="@anim/slide_in_gogo" android:scrollbarThumbVertical="@drawable/scrollbar_shape" android:scrollbars="vertical" /> \ No newline at end of file