How to have EditText with border in Android Lollipop

前端 未结 5 580
Happy的楠姐
Happy的楠姐 2020-12-08 03:56

I am developing an Android app. I need to know how we can have a EditText with border. In Lolipop they have completely changed the EditText style. Can we do it without using

5条回答
  •  生来不讨喜
    2020-12-08 04:33

    You can use a drawable. Create a drawable layout file in your drawable folder. Paste this code. You can as well modify it - border.xml.

    
    
    
    
    
    
    

    in your EditText view, add

    android:background="@drawable/border"
    

提交回复
热议问题