EditText cursor is invisible in Android 4.0

前端 未结 11 1248
逝去的感伤
逝去的感伤 2020-12-14 09:16

I have an EditText input in Android 4.0 and the Cursor is not showing inside it.

What can make the cursor not appear in the input field?

11条回答
  •  别那么骄傲
    2020-12-14 09:24

    If the EditText has a Background drawable with a border, the cursor is displaying in the border and appears to be invisible. To rectify the problem set padding in the EditText to a small amount e.g. 5dp

提交回复
热议问题