Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll dialog after keyboard is on

I have some dialog with EditText fields. when i want to fill some EditText the keyboard is opened and I can't fill some fields above. i should close the keyboards and after click on EditText above. How can I make my dialog scrollable when the keyboard is on to avoid closing the keyboard?

like image 933
HK.avdalyan Avatar asked Mar 07 '14 12:03

HK.avdalyan


1 Answers

Try:

dialog.getWindow().setSoftInputMode(
    WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
like image 87
Amol Desai Avatar answered Oct 20 '22 00:10

Amol Desai