android - edittext 靠右对齐时,光标在左侧闪动的解决办法
访问量: 2462
好奇怪,为什么android中要这么搞.
解决办法很简单;
your_edittext.setSelection(your_edittext.getText().length());
参考:https://stackoverflow.com/questions/22562959/how-to-set-the-cursor-to-the-right-edittext
访问量: 2462
好奇怪,为什么android中要这么搞.
解决办法很简单;
your_edittext.setSelection(your_edittext.getText().length());
参考:https://stackoverflow.com/questions/22562959/how-to-set-the-cursor-to-the-right-edittext