This is how to set keyboard type to B4XFloattext (YOu can change the type to numbers, decimal, text, etc).
This code is from B4i.(It was from a code sample posted by Erel but i couldn't find that thread now)
B4X:
Dim tf As TextField = edtIncome.TextField
tf.KeyboardType = tf.TYPE_DECIMAL_PAD