Change the Color of Highlighted text in Android

前端 未结 5 3608
栀梦
栀梦 2021-02-20 19:13

I\'m not sure that this is possible, perhaps someone can set me straight. I have an EditText View in an android application that has white text on a blue background. When the te

5条回答
  •  旧时难觅i
    2021-02-20 19:30

    As referred to by this SO post, you should be using a selector to change text colors like so:

    
    
        
        
    
        
        
    
        
        
    
    

    And then set your textColor property to @drawable/selector_name

提交回复
热议问题