标签: android colors android-framelayout remoteview
int mColor = 0xff00ff00; remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
如何使用mColor设置颜色?
答案 0 :(得分:19)
你应该试试
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);