Using Android:Digits attribute to restrict characters stops action next button working

后端 未结 1 1839
一向
一向 2021-01-11 11:11

I have a number of EditText fields on an Android app and I\'ve used android:digits to stop invalid characters being input.

eg: android:digits=\"@string/validch

相关标签:
1条回答
  • 2021-01-11 11:31

    After a bit of poking around with the attributes available for an EditText I found that when I add android:singleLine="true" the ENTER key now moves the focus to the next field, even when a android:digits is restricting the characters entered. Problem solved! (for me, anyway!)

    0 讨论(0)
提交回复
热议问题