开发者

Android hide keyboard but a cursor stays on screen

开发者 https://www.devze.com 2023-04-02 21:15 出处:网络
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

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

精彩评论

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