Back to project page recyclerview-sample.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project recyclerview-sample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.tatarka.recyclerviewtest.itemanimator; /*from w w w. jav a2s. c o m*/ import android.support.v7.widget.RecyclerView; /** * Created by evan on 6/28/14. */ abstract class PendingAnimator { RecyclerView.ViewHolder viewHolder; public PendingAnimator(RecyclerView.ViewHolder viewHolder) { this.viewHolder = viewHolder; } abstract void animate(BaseItemAnimator.OnAnimatorEnd callback); abstract void cancel(); public static abstract class Add extends PendingAnimator { public Add(RecyclerView.ViewHolder viewHolder) { super(viewHolder); } } public static abstract class Remove extends PendingAnimator { public Remove(RecyclerView.ViewHolder viewHolder) { super(viewHolder); } } public static abstract class Move extends PendingAnimator { public Move(RecyclerView.ViewHolder viewHolder) { super(viewHolder); } } }