EditText background base line color changing based on its focus in android

后端 未结 5 1195
时光取名叫无心
时光取名叫无心 2020-12-16 11:14

I need to design EditText with base line showed in below image and it will be change to some other color when it receives focus.!

5条回答
  •  时光说笑
    2020-12-16 11:33

    Try Holo Color generator for custom colors.

    Android Holo Colors

    You can create Selector and set it as background of the EditText

    res/drawable/edit_text.xml

    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
    
    

    layout :

    
    

提交回复
热议问题