Change background color of edittext in android

前端 未结 10 1692
一个人的身影
一个人的身影 2020-12-25 12:00

If I change the background color of my EditText using the below code, it looks like the box is shrunken and it doesn\'t maintain the ICS theme of a blue bottom

10条回答
  •  盖世英雄少女心
    2020-12-25 12:37

    I create color.xml file, for naming my color name (black, white...)

     
     
        #ffffff
        #000000
     
    

    And in your EditText, set color

    
    

    or use style in you style.xml:

    
    

    and add ctreated style to EditText:

     
    

提交回复
热议问题