Skip to content

Instantly share code, notes, and snippets.

@shivanic1986
Created October 15, 2015 12:23
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 shivanic1986/3878ba338b145e233fdc to your computer and use it in GitHub Desktop.
Save shivanic1986/3878ba338b145e233fdc to your computer and use it in GitHub Desktop.
CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) appbar.getLayoutParams();
AppBarLayout.Behavior behavior = (AppBarLayout.Behavior) params.getBehavior();
if (behavior != null) {
behavior.onNestedFling(cordinateLayoutMain, appbar, imgv_user_photo, 0, 100, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment