How do you set the state of a fragment extending BottomSheetDialogFragment to expanded using BottomSheetBehavior#setState(STATE_EXPANDED) using the
BottomSheetDialogFragment
BottomSheetBehavior#setState(STATE_EXPANDED)
Apply BottomsheetDialogFragment state in onResume will solve this issue
BottomsheetDialogFragment
onResume
@Override public void onResume() { super.onResume(); if(mBehavior!=null) mBehavior.setState(BottomSheetBehavior.STATE_EXPANDED); }
onShow(DialogInterface dialog) and postDelayed may cause animation glitch
onShow(DialogInterface dialog)
postDelayed