I have requirement where I have to show a edit text with below properties
- Maxlength of the edittext is 9 ( 7 digits and 2 commas) User can enter 4 digits max and rest 3 zeros will be automatically appended
i.e when user enters 1 , edit text become 1,000 when user enters 23 , edit text becomes 2,300
This am able to achieve , however i have 2 more questions
- How to prevent the user from entering 5th digits ( max user is allowed to enter 4 digits and maxlength of edit text will be 9 digits)
I tried setting InputType = InputType.NULL , setEnabled(false) in onTextChange() none seems to working fully