set textCursorDrawable programmatically

前端 未结 5 746
挽巷
挽巷 2020-12-01 03:22

If I add an EditText in XML I can set textCursorDrawable=\"@null\":



        
5条回答
  •  抹茶落季
    2020-12-01 04:17

    Using reflection for the cursor drawable is prohibited from Android Q.

    Instead, there is a new setTextCursorDrawable API and we can use this.

提交回复
热议问题