Skip to content

Commit

Permalink
Merge pull request #28 from laa-1-yay/recyclerviewanimation
Browse files Browse the repository at this point in the history
Sliding animation in Items of RecyclerView
  • Loading branch information
arazabishov committed Mar 8, 2016
2 parents 554d5b5 + 575a279 commit 3d22d61
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/main/res/anim/slide_in.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>

<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@android:integer/config_longAnimTime"
android:fromXDelta="-100%p"
android:toXDelta="0%p">

</translate>
5 changes: 5 additions & 0 deletions app/src/main/res/anim/slide_in_gogo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
android:animation="@anim/slide_in"
android:delay="50%"
android:interpolator="@android:anim/accelerate_interpolator" />
1 change: 1 addition & 0 deletions app/src/main/res/layout/recycler_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

0 comments on commit 3d22d61

Please sign in to comment.