The method setBackground(Drawable) in the type View is not applicable for the arguments (int)

来源:互联网 发布:阳江淘宝贝幼儿园 编辑:程序博客网 时间:2024/05/22 11:35

The method setBackground(Drawable) in the type View is not applicable for the arguments (int)

btnLookPwd.setBackground(R.drawable.open_eye);


问题解决:

btnLookPwd.setBackgroundResource(R.drawable.open_eye);

0 0