RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget_provider_layout);
views.setInt(btnId,"setBackgroundResource",R.drawable.ibtn_bg_loud_enable_selector);
更新widget中的背景
最新推荐文章于 2022-01-10 12:57:15 发布
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget_provider_layout);
views.setInt(btnId,"setBackgroundResource",R.drawable.ibtn_bg_loud_enable_selector);