Shay Well-Known Member Licensed User Longtime User Nov 2, 2014 #1 Hi Using IME I have activity + using loadlayout I have 1 EditText I wish to get keyboard as the layout is coming up, without pressing on the EditText How can I do it? It is not working with "Keyboard.ShowKeyboard (EditText1)"
Hi Using IME I have activity + using loadlayout I have 1 EditText I wish to get keyboard as the layout is coming up, without pressing on the EditText How can I do it? It is not working with "Keyboard.ShowKeyboard (EditText1)"
DonManfred Expert Licensed User Longtime User Nov 2, 2014 #2 I would try a EditText1.RequestFocus in Activity_Resume and in focus_changed showing the keyboard Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 3, 2014 #4 Add this line to the manifest editor: B4X: SetActivityAttribute(YourActivity, android:windowSoftInputMode, "stateVisible") Upvote 0
Add this line to the manifest editor: B4X: SetActivityAttribute(YourActivity, android:windowSoftInputMode, "stateVisible")
netsistemas Active Member Licensed User Longtime User Dec 5, 2014 #6 For seconds ACTIVITY_RESUME's: I must be included a DOEVENTS And Add LIBRARY IME to define Dim IME As IME Sub Activity_Resume FocoLectura End Sub Sub FocoLectura doEvents txtReferencia.Text = "" txtReferencia.RequestFocus DoEvents IME.ShowKeyboard(txtReferencia) End Sub Upvote 0
For seconds ACTIVITY_RESUME's: I must be included a DOEVENTS And Add LIBRARY IME to define Dim IME As IME Sub Activity_Resume FocoLectura End Sub Sub FocoLectura doEvents txtReferencia.Text = "" txtReferencia.RequestFocus DoEvents IME.ShowKeyboard(txtReferencia) End Sub