Android Question CustomDialog modal behavior

slugger

Member
Licensed User
Longtime User
Hello,

I have a CustomDialog (cd) and inside I put an EditText (ed), they are both created at runtime.

When I call

B4X:
cd.Show

I'd like to have the focus set to the EditText and the Keyboard pop up.

I've tried to use

B4X:
ed.requestfocus

before showing the CustomDialog but it does nothing, the same if I use an IME object to show the Keyboard.

I know the CustomDialog is modal so there are no chances after I call the "show", is there something I can do before calling "show" to have the EditText receive the focus and the Keyboard to pop up after the CustomDialog appears?

Thank you in advance.
 
Top