I\'ve tried updating com.android.support:appcompat and com.android.support:design from: 25.0.1 to 25.1.0, as follows:
compile \'com
Updating from support lib 25.0.1 to 25.1.0 changes the onNestedScroll method of CoordinatorLayout in that the call is skipped for views whose visibility is set to View.GONE.
Calling child.hide() on the floating action button sets the view's visibility to View.GONE, which means now (as of 25.1.0), the onNestedScroll method call will be skipped for the floating action button in the future (because it skips all views whose visibility is GONE).
A workaround for this would be to set the view's visibility to INVISIBLE whenever you hide it. This way, the onNestedScroll will not skip the view the next time a nested scroll is performed.
In order to achieve this, you can call
child.hide(new FloatingActionButton.OnVisibilityChangedListener() {
/**
* Called when a FloatingActionButton has been hidden
*
* @param fab the FloatingActionButton that was hidden.
*/
@Override
public void onHidden(FloatingActionButton fab) {
super.onShown(fab);
fab.setVisibility(View.INVISIBLE);
}
});
in your onNestedScroll method.
Edit: This issue has been submitted to the AOSP Issue Tracker at https://code.google.com/p/android/issues/detail?id=230298