禁用的EditText闪烁的光标光标、EditText

2023-09-12 04:00:10 作者:胯下狙击手

有谁知道如何禁用闪烁的光标在一个EditText看法?

Does anyone know how to disable the blinking cursor in an EditText view?

推荐答案

您可以使用XML属性安卓cursorVisible =假或Java函数 setCursorVisible(假)

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