开发者

Android hide keyboard but a cursor stays on screen

Good morning!

On an开发者_如何学运维 app that I'm working on, I hide the soft keyboard and have a dark overlay appear on screen. The issue I'm having is that after the keyboard is hidden, there is still a little indicator/cursor on the EditText.

How can I hide this?

Many thanks!


You can use either the xml attribute android:cursorVisible or the java function setCursorVisible(boolean).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜