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

后端 未结 5 1271
时光取名叫无心
时光取名叫无心 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:30

    For changing the baseline of EditText when it is on focus you can simply go to the colors.xml file in your project and change the "colorAccent" value.

    res/values/colors.xml

    
    
    ...
    #DESIRED_COLOR
    `
    

提交回复
热议问题