How can I get My entire BottomSheetDialog to show above my keyboard?

喜你入骨 提交于 2019-12-24 21:26:10

问题


I have a BottomSheetDialog that pops up on click of a button. The Dialog contains an EditText, and on the focus of that EditText, the Dialogs Pans only up to the EditText, Leaving my Submit button below it hidden

My Code:

mBottomSheetDialog = new BottomSheetDialog(MyActivity.this);
sheetView = getLayoutInflater().inflate(R.layout.my_bottom_sheet, null);
mBottomSheetDialog.setContentView(myView);
mBottomSheetDialog.show();

I have Tried using adjustPan, but that only works up to the EditText, whereas I want it to my Submit button

来源:https://stackoverflow.com/questions/54703281/how-can-i-get-my-entire-bottomsheetdialog-to-show-above-my-keyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!