there is no "default" workaround for your problem. your Dialog
appears at first, then EditText
is drawn, it requests focus and then keyboard shows - Dialog
is already drawn (full screen), so it shrinks
maybe you can try to force show keyboard BEFORE Dialog
appears
((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).
toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
then show your Dialog
(maybe with some few milisec delay?) and call editText.requestFocus()
for "connecting" keyboard to freshly shown EditText
(there is a change is will be done automatically, as EditText
may request focus when inflated)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…