My app contain a bottomsheeet and i am using following methods to change its state
public void toggleBottomSheet() {
if (sheetBehavior.getState() != BottomSheetBehavior.STATE_EXPANDED) {
sheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
} else {
sheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
}
}
But in some devices it is not showing animation properly ( Bottom to up ), It opens directly like popup. How to add animation so it looks it is coming from bottom.