Keyboard hides BottomSheetDialogFragment

后端 未结 6 1409
走了就别回头了
走了就别回头了 2020-12-04 13:22

There are more fields below the keyboard. This happened when i updated the support library. I know it\'s Kotlin but it looks almost the same as java. How do I fix this issue

6条回答
  •  失恋的感觉
    2020-12-04 14:18

    add this to your styles

    
    

    then in your's bottom sheet dialog's onCreate() add

    setStyle(DialogFragment.STYLE_NO_FRAME, R.style.DialogStyle);
    

    also don't forget to add to dialog's setupDialog() method

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

提交回复
热议问题