【问题标题】:remoteview framelayout background color远程视图框架布局背景颜色
【发布时间】:2011-11-21 18:10:21
【问题描述】:
int mColor = 0xff00ff00;

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

如何使用 mColor 设置颜色?

【问题讨论】:

    标签: android colors android-framelayout remoteview


    【解决方案1】:

    你应该试试

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-14
      • 2013-01-24
      • 1970-01-01
      • 2013-03-09
      • 1970-01-01
      • 2018-09-23
      相关资源
      最近更新 更多