android - How to resize AlertDialog on the Keyboard display -


okay have alertdialog box approximately 10 controls (text , textview) on it. these controls in scrollview alertdialog, plus got 2 buttons positive , negative. issue have when soft keyboard pops 2 buttons hidden behind keyboard.

i looking redraw function on inner view or dialog box.

if 1 has idea please help. below screen shot of talking about.

enter image description here

if dialog activity using 1 of dialog themes effect behavior setting adjustresize flag windowsoftinputmode parameter of activity.

i'm using:

android:windowsoftinputmode="adjustresize|statehidden" 

i think can still use flag regular dialogs, i'm not sure how apply it. may have create alertdialog custom theme inherits right parent theme , sets flag, or might have use contextthemewrappers , stuff.

or maybe can use window#setsoftinputmode.

alertdialog.getwindow().setsoftinputmode(     windowmanager.layoutparams.soft_input_adjust_resize); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -