MrEngineer13 / SnackBar

toast-like alert pattern for Android inspired by the Google Material Design Spec
Apache License 2.0
1.22k stars 174 forks source link

FloatingActionButton has a little time difference with SnackBar #90

Open luziming opened 7 years ago

luziming commented 7 years ago
 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