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