I have 2 DSFloatLabelEditText of the design support library. For filling the first one I have a buton to use a BarcodeScaner with some code like this:
The toast is shown, The DSFloat2 got the focus (prompt is there) but the keyboard does not show until i tap on DSFloat2 view.
I already tried: CallSubDelayed the ime, Sleep before the ime, same both changing the ime call to BarcodeOk.
Maybe is because DSFloatLabelEditText is not a valid View for IME.
Any idea on how to set focus and show the keyboard on a DSFloatLabelEditText?
(Or if has a inner EditText, how to get it to call the ime with it)
B4X:
Sub BarcodeOk(Value As String)
DSFloat1.Text = Value
DSFloat2.RequestFocus
End Sub
Sub DSFloat2_FocusChanged (HasFocus As Boolean)
If HasFocus = True Then
ToastMessageShow("Has the focus", True)
ime.ShowKeyboard(DSFloat2)
End If
End Sub
The toast is shown, The DSFloat2 got the focus (prompt is there) but the keyboard does not show until i tap on DSFloat2 view.
I already tried: CallSubDelayed the ime, Sleep before the ime, same both changing the ime call to BarcodeOk.
Maybe is because DSFloatLabelEditText is not a valid View for IME.
Any idea on how to set focus and show the keyboard on a DSFloatLabelEditText?
(Or if has a inner EditText, how to get it to call the ime with it)
Last edited: