[Android] Deal with the problem that the EditText cursor is displayed above the hint text

Android handles the problem of EditText cursor displaying above hint text

The design said that the overlap between the EditText cursor and the hint is not good-looking, and I hope the hint will be moved back
I thought it was difficult to position the text until I had an idea

set up

_editText.hint = " "+hint

That’s right, space + text will do it

Guess you like

Origin blog.csdn.net/weixin_42473228/article/details/134854727