Tsnack bar make a big issue in our project. We are showing snack bar in top of the screen. And user able to swipe to dismiss. Now the issue is user swipe the snack bar our AppBar also getting disappeared . We investigate the issue we got that this is because of Behaviour changes in Coordinate layout. Unfortunately we are not able to solve this. Any one face this issue?
We tried
behavior.setDragCallback(new AppBarLayout.Behavior.DragCallback() {
@Override
public boolean canDrag(AppBarLayout appBarLayout) {
return false;
}
});
((CoordinatorLayout.LayoutParams)appBarLayout.getLayoutParams()).setBehavior(behavior);
But no luck.
Tsnack bar make a big issue in our project. We are showing snack bar in top of the screen. And user able to swipe to dismiss. Now the issue is user swipe the snack bar our AppBar also getting disappeared . We investigate the issue we got that this is because of Behaviour changes in Coordinate layout. Unfortunately we are not able to solve this. Any one face this issue?
We tried
But no luck.