Change background color of edittext in android

前端 未结 10 1658
一个人的身影
一个人的身影 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:15

    one line of lazy code:

    mEditText.getBackground().setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP);
    

提交回复
热议问题