Search code examples
androidandroid-edittextlimitdata-entry

Limit a number edittext entry to 10 million


I have a "number edittext". I want to limit the entry of the "number edittext" to 10 million. How can I implement this?


Solution

  • 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.