最佳答案
您可以在编辑文本中使用 android:textCursorDrawable="@drawable/mycursor"
并像这样创建形状:
mycursor.xml:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<size android:width="2dp" />
<solid android:color="@android:color/holo_blue_light"/>
</shape>
关于android - 如何在 EditText 中使用方框光标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54730886/