How can I avoid entering a character in an EditBox in Android Studio?

Viewed 71

I want to prevent the user from entering a character in an EditText a second time, for example, if you enter the number zero, it's OK but if you want to enter the number zero for the second time, that action should be canceled.

In other words, I don't want the user to write 00.

Is there any way to do it?

2 Answers
Related