实现RecyclerView项目动画:RecyclerViewItemAnimators

jopen 10年前

这个Android项目为在RecyclerView中的item views提供简单的动画。其代码克隆自DefaultItemAnimator,由于Google提供的自动定义动画。

特性

SlideInOutLeftItemAnimator : which applies a slide in/out from/to the left animation
SlideInOutRightItemAnimator : which applies a slide in/out from/to the right animation
SlideInOutTopItemAnimator : which applies a slide in/out from/to the top animation
SlideInOutBottomItemAnimator
: which applies a slide in/out from/to the bottom animation
ScaleInOutItemAnimator
: which applies a scale animation
SlideScaleInOutRightItemAnimator : which applies a scale animation with a slide in/out from/to the right animation

demo.gif

Quick example:

   mRecyclerView.setItemAnimator(new SlideInOutLeftItemAnimator(mRecyclerView));

项目主页:http://www.open-open.com/lib/view/home/1416360430711