Android: BottomSheetFragment Keyboard problem?

Leo N
2 min readJun 16, 2019

Use this in your Dialog Fragment.

getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

Inside onCreateView like this.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

View rootView =

--

--

Leo N

🎓 “A person who never made a mistake never tried anything new.” — Albert Einstein