I have a "number edittext". I want to limit the entry of the "number edittext" to 10 million. How can I implement this?
Asked
Active
Viewed 434 times
2 Answers
4
you can set limit in Edit Text for this purpose. try following code
android:maxLength="9"
This will allow you to add number upto 999999999 Rs.

Lucifer
- 29,392
- 25
- 90
- 143
2
Limit text length of EditText in Android I am not sure what you mean exactly but i am guessing you don't want the text box size to be more than 1 and 7 zeros, i think the above link should help you if that's the case.

Community
- 1
- 1

user602182
- 139
- 1
- 9