Android Question numeric keyboard with B4XFloatTextField

Humberto

Active Member
Licensed User
How can I configurate to numeric keyboard with B4XFloatTextField like in EditText
B4X:
Dim xEdt As EditText
xEdt.InputType = xEdt.INPUT_TYPE_NUMBERS

B4XInputTemplate doesn´t work.
 

DonManfred

Expert
Licensed User
B4X:
Dim et As EditText = B4XFloatTextField1.TextField
'modify it as needed
 
Upvote 0

Humberto

Active Member
Licensed User
This is a password field, when I enter the first time shows the numeric pad, if I press to see the digits turn into a regular keyboard and don´t come back.

I´ll wite a small program to show.
 
Upvote 0

Humberto

Active Member
Licensed User
B4XFloatTextField (edt_reg_senha) is defined in designer and is the field that receive the password and I got problem

I set
B4X:
    xPnl_Senha.Initialize("")
    xPnl_Senha.LoadLayout("campo_senha")
    xPnl_SV.AddView ( xPnl_Senha, 5dip, xTop, 100%x-20dip,35dip)
    Dim xEdt As EditText = edt_reg_senha.TextField
    xEdt.InputType = xEdt.INPUT_TYPE_NUMBERS

But when the user press to reveal the password the keyboard goes back to full keyboard not numeric

That is the problem
 
Upvote 0

Humberto

Active Member
Licensed User
I like to use this field ( B4XFloatTextField ) exactly because this function to reveal the password.

How can I have a password field using the numeric keyboard and the "reveal" function working, is it possible ?
 
Upvote 0

Humberto

Active Member
Licensed User
Great.

The regular EditText has "Input Type".
When I saw this features ( reveal ) I think that the app will look more professional and I´m start doing the
Implementation.

I´ll wait

Thanks
 
Upvote 0
Top