Open GoogleCodeExporter opened 9 years ago
Hi,
Thanks for pointing that out. I'm not certain how to get the keyboard to show
automatically. It may be that it will work if we set the focus to the text box.
I'll see what I can find.
- Paul.
Original comment by oshea.p...@gmail.com
on 24 Apr 2011 at 5:54
Hi,
input.requestFocus();
on the EditText didn't work in this case.
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_AL
WAYS_VISIBLE);
within the AlertDialog.onStart() method didn't work either.
And adding an onFocusChangedListener that uses an InputMethodManager also
didn't work:
input.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
TextNoteDialog.this.inputMgr.showSoftInput(v, InputMethodManager.SHOW_FORCED);
}
}
});
I found some sites saying that it is not possible within an AlertDialog and one
has to create a custom Dialog for this case... I think we should check this.
best regards
Matthias
Original comment by matthias...@gmail.com
on 27 Apr 2011 at 9:26
Original issue reported on code.google.com by
imnother...@gmail.com
on 24 Apr 2011 at 3:10