Android Question FloatLabeledEditText and Custom Filters

MarcoRome

Expert
Licensed User
Longtime User
Hi All.
Is possible use with FloadLabel the Custom filters ?
Example:
To set up so that you can type an ip address in Edit3 we write:
IME.SetCustomFilter(EditText3, EditText3.INPUT_TYPE_NUMBERS, "0123456789.")

in FloatLabel ?

Thank you
Marco
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Hi All.
Is possible use with FloadLabel the Custom filters ?
Example:
To set up so that you can type an ip address in Edit3 we write:
IME.SetCustomFilter(EditText3, EditText3.INPUT_TYPE_NUMBERS, "0123456789.")

in FloatLabel ?

Thank you
Marco
Yes - try:

B4X:
Private fl as FloatLabeledEditText

IME.SetCustomFilter(fl.EditText, fl.EditText.INPUT_TYPE_TEXT, "0123456789.")

This is exactly what I do in one of my apps.

- Colin.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Hi Colin.
Thank you for your suggestion.
But instead of INPUT_TYPE_TEXT if we just want to see numbers just put INPUT_TYPE_NUMBERS.
So is right
IME.SetCustomFilter(fle_ipserver.EditText, fle_ipserver.EditText.INPUT_TYPE_NUMBERS, "0123456789.")

Thank you again and have nice day
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Hi Colin.
Thank you for your suggestion.
But instead of INPUT_TYPE_TEXT if we just want to see numbers just put INPUT_TYPE_NUMBERS.
So is right


Thank you again and have nice day
Yeah - correct. Typo on my part!

- Colin.
 
Upvote 0
Top