Skip to content

Commit

Permalink
Added RV animation calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Nov 25, 2015
1 parent 2e4674a commit 0d735bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/java/io/plaidapp/ui/HomeGridItemAnimator.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,17 @@ public boolean animateChange(RecyclerView.ViewHolder oldHolder,

// clean up
upDown.addListener(new AnimatorListenerAdapter() {

@Override
public void onAnimationStart(Animator animation) {
dispatchAnimationStarted(holder);
}

@Override
public void onAnimationEnd(Animator animation) {
((ViewGroup) holder.pocket.getParent().getParent()).setClipChildren(true);
holder.itemView.setHasTransientState(false);
dispatchAnimationFinished(holder);
}
});
upDown.start();
Expand Down

0 comments on commit 0d735bb

Please sign in to comment.