Change the color of the cursor of an EditText in Android across all the sdk

前端 未结 5 2380
半阙折子戏
半阙折子戏 2021-02-19 08:30

Want to change the android\'s edittext cursor color, that has to be worked on across all the devices

5条回答
  •  天涯浪人
    2021-02-19 09:03

    i had to use a drawable like this:

    mycursor.xml:

          
        
            
             
    
        
    

    in my edit text i set the cursor drawable attributes like this:

                                
    

提交回复
热议问题