Created
February 8, 2017 11:06
-
-
Save ashmeh6/5423f8e1ef8cf34a0edad68e427a3217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Ashish on 08-Feb-17. | |
*/ | |
public class RecyclerAdapterAnimation extends RecyclerView.Adapter<RecyclerAdapterAnimation.Holder> { | |
@Override | |
public Holder onCreateViewHolder(ViewGroup parent, int viewType) { | |
return new Holder(view); | |
} | |
@Override | |
public void onBindViewHolder(final Holder holder, final int position) { | |
........ | |
ObjectAnimator fade = ObjectAnimator.ofFloat(holder.itemView, View.TRANSLATION_Y, 200,0);//.6f,1f); | |
fade.setDuration(1000); | |
fade.setInterpolator(new LinearOutSlowInInterpolator()); | |
fade.start(); | |
} | |
@Override | |
public int getItemCount() { | |
return 0; | |
} | |
static class Holder extends RecyclerView.ViewHolder{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment