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.

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
Post a Comment