Set EditText cursor color

后端 未结 24 1412
醉话见心
醉话见心 2020-11-22 10:57

I am having this issue where I am using the Android\'s Holo theme on a tablet project. However, I have a fragment on screen which has a white background. I am adding an

24条回答
  •  醉酒成梦
    2020-11-22 11:40

    It appears as if all the answers go around the bushes.

    In your EditText, use the property:

    android:textCursorDrawable="@drawable/black_cursor"
    

    and add the drawable black_cursor.xml to your resources, as follows:

    
    
        
        
    
    

    This is also the way to create more diverse cursors, if you need.

提交回复
热议问题