Вопрос

In my app i have placed some EditBoxes . When the user types some data i want to stop him from entering too much of characters. i.e When the number of characters exceed 80, the characters typed next to them must be stopped and it must be invisible.

Is there any option for this in android or should I write a code of my own. If I have to write a code of my own please help me friends.

Это было полезно?

Решение

Use setFilters or android:maxLength in xml

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top