A adrianomurta Member Licensed User Longtime User Nov 9, 2011 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2011 #2 This is the default behavior of Android. I know that it sounds simple, but programmatically showing the keyboard is very difficult and unreliable. Upvote 0
This is the default behavior of Android. I know that it sounds simple, but programmatically showing the keyboard is very difficult and unreliable.
nfordbscndrd Well-Known Member Licensed User Longtime User Nov 10, 2011 #3 adrianomurta said: how to activate on the screen the keyboard... Click to expand... If being able to bring up a keyboard via code is critical for your app, you can do so by using a custom keyboard, but doing so requires some work. See http://www.b4x.com/forum/basic4andr.../11631-custom-keyboard-creator-interface.html for help. Upvote 0
adrianomurta said: how to activate on the screen the keyboard... Click to expand... If being able to bring up a keyboard via code is critical for your app, you can do so by using a custom keyboard, but doing so requires some work. See http://www.b4x.com/forum/basic4andr.../11631-custom-keyboard-creator-interface.html for help.
Rusty Well-Known Member Licensed User Longtime User Jan 12, 2012 #5 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 Code: Copy ph.HideKeyboard(activity) You can SHOW the keyboard with the initialize function of the edit text Code: Copy edtText.Initialize("edtText") activity.AddView(edtText, 10, 10, 200, 50) I hope this helps Upvote 0
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 Code: Copy ph.HideKeyboard(activity) You can SHOW the keyboard with the initialize function of the edit text Code: Copy edtText.Initialize("edtText") activity.AddView(edtText, 10, 10, 200, 50) I hope this helps