MrEngineer13 / SnackBar

toast-like alert pattern for Android inspired by the Google Material Design Spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FloatingActionButton has a little time difference with SnackBar

luziming opened this issue · comments

 SnackbarManager.show(Snackbar.with(mContext).text("MSG")
            .eventListener(new SnackBarObserver() {
                @Override
                public void onShow(Snackbar snackbar) {
                    actionButton.showWithSnackHeight(snackbar.getHeight());
                }

                @Override
                public void onDismiss(Snackbar snackbar) {
                    actionButton.showWithSnackHeight(0);
                }
            }).duration(500));

FloatingActionButton is always slower than SnackBar