安卓EDITTEXT键盘的setText后改变() [英] android editText keyboard changed after setText()
本文介绍了安卓EDITTEXT键盘的setText后改变()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我想进入的消息到EDITTEXT,我输入一些数字,我的键盘看起来像:
If I want to enter a message into an editText, I enter some digits and my keyboard looks like that:
但之后,我通过点击按钮添加从code一些文本( et.setText(et.getText()。的toString()++ABC)
),键盘变为:
but after I add some text from code by clicking the button (et.setText(et.getText().toString() + " " + "abc")
), keyboard changes to:
是有办法prevent出现这种情况?
is there a way to prevent this happening?
推荐答案
我用editable.append代替et.setText()和这个作品
I've used editable.append instead of et.setText() and this works
这篇关于安卓EDITTEXT键盘的setText后改变()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文