How to block special characters in androids editText? no ANDROID:DIGITS
Asked Answered
C

1

2

How to block special characters in androids editText? by not using android:digits!!

is there any other way around, even programmatically?

Casta answered 6/5, 2011 at 4:18 Comment(0)
Y
0

EditText has an onTextChanged listener, you can follow the characters the user is inputting and if the character is illegal you just delete it. Not the most elegant way, but hope it makes it. Good luck!

Yeta answered 6/5, 2011 at 4:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.