Skip to content

Instantly share code, notes, and snippets.

@thanhtoan1196
Created October 26, 2016 02:12
Show Gist options
  • Save thanhtoan1196/30d507a46d96b555bace79fae80d1d0d to your computer and use it in GitHub Desktop.
Save thanhtoan1196/30d507a46d96b555bace79fae80d1d0d to your computer and use it in GitHub Desktop.
@Override
public void onBindViewHolder(RecyclerViewHolder holder,final int position) {
holder.textName.setText("login:"+contributor.login);
setAnimation(holder.container, position);
}
@Override
public void onViewDetachedFromWindow(RecyclerViewHolder holder) {
super.onViewDetachedFromWindow(holder);
RecyclerViewHolder recyclerViewHolder = (RecyclerViewHolder)holder;
recyclerViewHolder.container.clearAnimation();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment