edittext.settext() changes the keyboard type to default [ from ?123 to ABC]

廉价感情. 提交于 2019-11-29 09:22:35
T_C

finnaly got it working, had to combine multiple solutions mentioned in the comments above

since the guilty was settext, I found a replacement for it - append

but to use append I had to clear edittext without using settext, this link to the rescue

so replaced

cardNumberEditText.setText(formattedNumber);

with

cardNumberEditText.getText().clear();
cardNumberEditText.append(formattedNumber);

works like a charm now

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!