开发者

remoteview framelayout background color

开发者 https://www.devze.com 2023-04-06 14:13 出处:网络
int mColor = 0xff00ff00; remoteView.setInt(R.id.framelayout1, \"setBackgroundResource\", android.R.color.white);
int mColor = 0xff00ff00;

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

how do i set the color usin开发者_Python百科g mColor ?


You should try

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

精彩评论

暂无评论...
验证码 换一张
取 消