keyboard

adrianomurta

Member
Licensed User
Longtime User
hi,

how to activate on the screen the keyboard

example:

when i use edittext.RequestFocus the keyboard dont show.

BUT

the keyboard only show if i click in the edittext

any idea

TIA Adriano
 

Rusty

Well-Known Member
Licensed User
Longtime User
After much effort, I've realized that if you want to reliably SHOW the keyboard, you must initialize the edittext view every time you want the keyboard displayed (reliably).
you can initialize the same edittext multiple times and even change attributes such as INPUT_TYPE from PHONE, TEXT etc.

Obviously, you can HIDE the keyboard with the phone.hidekeyboard
B4X:
ph.HideKeyboard(activity)

You can SHOW the keyboard with the initialize function of the edit text

B4X:
edtText.Initialize("edtText")
activity.AddView(edtText, 10, 10, 200, 50)
I hope this helps
 
Upvote 0
Top