int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
如何使用 mColor 设置颜色?
最佳答案
你应该试试
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
关于android - 远程 View 框架布局背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7496983/