remoteview framelayout背景颜色

时间:2011-09-21 08:45:56

标签: android colors android-framelayout remoteview

int mColor = 0xff00ff00;

remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);

如何使用mColor设置颜色?

1 个答案:

答案 0 :(得分:19)

你应该试试

remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);