Help me please, how I can allow type on EditText a line break
I want allow only these characters
"0123456789abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ.,-"
and also line breaks
(B4A)
Attachments
Captura de Pantalla 2020-12-30 a la(s) 11.23.42.png
You could try to set a custom filter to the edittext and add CRLF to your characters:
B4X:
Dim IME1 As IME
IME1.SetCustomFilter(EditText1, EditText1.INPUT_TYPE_TEXT, "0123456789abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ.,-" & CRLF)
Please make sure that the Single Line option in the designer is not checked for the edittext.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.