Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 remoteview 设置 appWidget 上存在的 listView 的选择器颜色。基本上我想根据用户选择的主题来改变它的颜色,所以我不能在布局xml中定义它。请帮忙
您应该可以通过将主题的列表选择器ID传递给远程列表视图来做到这一点
rv.setInt(R.id.myList, "setSelector", listSelectorDrawableId);