Change the Color of Highlighted text in Android

前端 未结 5 2691
你的背包
你的背包 2021-02-20 18:54

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条回答
  •  长发绾君心
    2021-02-20 19:25

    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

提交回复
热议问题