一定要用 et.setBackgroundResource(R.color.white);
而不能用et.setBackgroundColor(R.color.white);
(colors.xml) in res/values folder
<resources>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
</resources>
一定要用 et.setBackgroundResource(R.color.white);
而不能用et.setBackgroundColor(R.color.white);
(colors.xml) in res/values folder
<resources>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
</resources>