android - DialogFragment doesn't pan with SOFT_INPUT_ADJUST_PAN -
i have dialogfragment has content in including edittext field.
unfortunately when click on edittext field, softkeyboard covers dismiss button dialog. problem resolved using
getdialog().getwindow().setsoftinputmode(windowmanager.layoutparams.soft_input_adjust_resize);
unfortunately, when this, dialog shrinks , other items in covered. tried using soft_input_adjust_pan
instead, containing activity adjusted in case, dialogfragment didn't move , dismiss buttons still covered. there way can make dialogfragment pan?
my relevant dialogfragment code looks this:
@override public void onviewcreated(view view, bundle savedinstancestate) { super.onviewcreated(view, savedinstancestate); getdialog().getwindow().setsoftinputmode(windowmanager.layoutparams.soft_input_adjust_pan); mcontactsupportview.findviewbyid(r.id.compose_message).clearfocus(); }
dialog layout attr. should match_parent. when open keyboard open strech dialog layout. such samsung galaxy "create new folder" dialog.
Comments
Post a Comment