How to change the border color(un-focused) of an EditText?

后端 未结 6 1963
[愿得一人]
[愿得一人] 2020-12-02 20:05

I changed the background color of the EditText to transperant. Now the EditText looks invisible when not focused. So how can I change the un-focused border color of EditText

6条回答
  •  时光取名叫无心
    2020-12-02 20:48

    Create a XML file with the following in drawable (say backwithborder.xml):

    
        
        
    
    

    and for the EditText user attribute android:background="@drawable/backwithborder"

提交回复
热议问题