远程视窗的FrameLayout的背景颜色 [英] remoteview framelayout background color
本文介绍了远程视窗的FrameLayout的背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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);
这篇关于远程视窗的FrameLayout的背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文