Bottom Sheet Fragment comes up with keyboard

前端 未结 7 1772
野的像风
野的像风 2020-12-04 14:37

I have an edit text inside a bottom sheet fragment. when the focus come on the edit text the layout goes up . i tried

 android:windowSoftInputMode=\"adjustNo         


        
7条回答
  •  不思量自难忘°
    2020-12-04 15:32

    Get the decor view of the dialog and set the bottom padding to height 0 or your dialog height.

    getDialog.getWindow.getDecorView.setpadding(0,0,0,0);
    

提交回复
热议问题