Skip to content

Instantly share code, notes, and snippets.

@inktomi
Created September 25, 2015 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inktomi/8a8f760620966fc58043 to your computer and use it in GitHub Desktop.
Save inktomi/8a8f760620966fc58043 to your computer and use it in GitHub Desktop.
mAppBarHeader.setExpanded(false, true);
Handler animatedDelay = new Handler(Looper.getMainLooper());
animatedDelay.postDelayed(new Runnable()
{
@Override
public void run()
{
AppBarLayout.LayoutParams layout = (AppBarLayout.LayoutParams) mAppBarChildContainer.getLayoutParams();
layout.setScrollFlags(0);
mAppBarChildContainer.setLayoutParams(layout);
}
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment