[V5]改变编辑框光标

iapp教程 84 2023-08-12 01:12  

1.在项目文件apk/res/drawable/下创建一个cursor.xml

  • <?xml version="1.0" encoding="utf-8"?>
  • <shape xmlns:android="http://schemas.android.com/apk/res/android">
  • <size android:width="2dp" />
  • <solid android:color="#000" />
  • </shape>

编辑框属性添加


  • textCursorDrawable=zy.drawable.cursor

admin 管理员 楼主
美化部分UI更多功能待定呃哈哈

全部回复

  1 正序
  • admin 管理员 1 Floor

咳咳

3个月前 0 0
Need Login