远程视窗的FrameLayout的背景颜色视窗、颜色、背景、FrameLayout

2023-09-07 11:42:59 作者:尸骨磨成戰刀

int mColor = 0xff00ff00;

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

我如何使用mColor设置颜色?

how do i set the color using mColor ?

推荐答案

您应该尝试

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