Custom auto hide floatingActionButton behavior is not working

丶灬走出姿态 提交于 2019-12-04 10:08:47
jairobjunior

Take a look at what @woxingxiao is saying here

Pretty much onNestedScroll won't get fired if the visibility of the button is GONE. So, replace:

child.hide();

to:

child.hide(new FloatingActionButton.OnVisibilityChangedListener() {
    @Override
    public void onHidden(FloatingActionButton fab) {
        super.onHidden(fab);
        fab.setVisibility(View.INVISIBLE);
    }
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!