可以使用代码设置诸如 First Color 之类的属性吗?
我想做这样的事情:
btnMyButton.drawable = "StatelistDrawable"
btnMyButton.drawable.EnabledDrawable = "GradientDrawable"
btnMyButton.drawable.EnabledDrawable.firstcolor = "255, 199, 199"
btnMyButton.drawable.EnabledDrawable.secondcolor = "255, 79, 79"