我想知道如何以编程方式设置按钮颜色?我编写了以下代码但失败了:
Button11.setBackgroundColor(R.color.red);
谢谢!!
android button
android ×1
button ×1