Skip to content

Instantly share code, notes, and snippets.

@mortenjust
Created September 25, 2015 17:25
Show Gist options
  • Save mortenjust/839a5eeb42408c743188 to your computer and use it in GitHub Desktop.
Save mortenjust/839a5eeb42408c743188 to your computer and use it in GitHub Desktop.
objectAnimator
void animateDrawer(){
// Animate to header state
//Log.d("test", scrollStateHeader.toString());
ObjectAnimator drawerAnimator = ObjectAnimator.ofInt(appView, "scrollY", 0, scrollStateHeader).setDuration(1200);
drawerAnimator.setInterpolator(new AnticipateInterpolator(2));
drawerAnimator.setStartDelay(1000);
drawerAnimator.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment