show soft keyboard
This commit is contained in:
parent
a14b86c8de
commit
1ce72a1053
1 changed files with 9 additions and 0 deletions
|
|
@ -261,6 +261,15 @@ public class OpenFileDialog extends AlertDialog.Builder {
|
|||
imm.hideSoftInputFromWindow(input.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AlertDialog create() {
|
||||
AlertDialog d = super.create();
|
||||
|
||||
d.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
||||
|
||||
return d;
|
||||
}
|
||||
|
||||
public void setText(String s) {
|
||||
input.setText(s);
|
||||
input.setSelection(s.length());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue