I view this thead
www.b4x.com
and i include this code:
but
how to do this in b4x with a B4XFloatTextField control?
the final objet is allow to the user, input a decimal with comma or point in a keyboard (in spain and europe - no germany), i think the decimal is comma.
(after i replace comma with point whit this funcion
)
Handle the soft keyboard with the IME library
Android has very good support for custom input method editors (IMEs). The downside for this powerful feature is that interacting with the soft keyboard can be sometimes quite complicated. This library includes several utilities that will help you better handle the soft keyboard. The attached...

and i include this code:
B4X:
Dim ime As IME
ime.Initialize ( "IME")
ime.SetCustomFilter(txtKilos,txtKilos.INPUT_TYPE_NUMBERS,"0123456789,.")
but
how to do this in b4x with a B4XFloatTextField control?
the final objet is allow to the user, input a decimal with comma or point in a keyboard (in spain and europe - no germany), i think the decimal is comma.
(after i replace comma with point whit this funcion
B4X:
public Sub Val(Txt As String) As Double
If IsNumber(Txt & "") Then
Return Txt
Else
Dim NewVal As String
NewVal = Txt.Replace(",",".")
If IsNumber(NewVal) Then
Return NewVal
Else
Return 0
End If
End If
End Sub
)