Back

android - edittext 靠右对齐时,光标在左侧闪动的解决办法

发布时间: 2017-11-03 13:58:00

好奇怪,为什么android中要这么搞.

解决办法很简单;

    your_edittext.setSelection(your_edittext.getText().length());

参考:https://stackoverflow.com/questions/22562959/how-to-set-the-cursor-to-the-right-edittext

Back