相关疑难解决方法(0)

更改remoteView ImageView背景

我有一些带有ImageViews的remoteView,我需要以编程方式更改"android:background".

我知道如何更改"android:src":

remoteView.setImageViewResource(int viewId, int srcId);
Run Code Online (Sandbox Code Playgroud)

它工作正常,但我如何更改"android:背景"?

谢谢

android widget imageview

22
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

imageview ×1

widget ×1