0

My requirement is i have already declared digits in xml for dynamic edit text as below android:digits="qwertyuiopasdfghjklzxcvbnm 1234567890 QWERTYUIOPASDFGHJKLZXCVBNM" But in activity/fragment when the type is date i need to allow only digits "0123456789/". How to do this programmatically in android.

Tried using setKeyListener(DigitsKeyListener.getInstance() but showing up only number not getting slash(/) i need slash also for showing date.

I tried using input type as TYPE_CLASS_DATETIME in some android phone like samsung it is not showing up slash in keypad.

How to override digit(0123456789/) in fragment programmatically in android

Any help is useful.

Hemavathi
  • 175
  • 1
  • 12

0 Answers0