开发者

Android-Widget : Changing ListView selector color using RemoteView

开发者 https://www.devze.com 2023-03-17 05:02 出处:网络
Is it possible to开发者_StackOverflow set the selector color of listView present on the appWidget using remoteview. Basically I wanted to change its color according to the theme selected by user, so I

Is it possible to开发者_StackOverflow set the selector color of listView present on the appWidget using remoteview. Basically I wanted to change its color according to the theme selected by user, so I can't define it in the layout xml. Please help


You should be able to do so by passing the list-selector id of your theme to the remote listview via

rv.setInt(R.id.myList, "setSelector", listSelectorDrawableId);
0

精彩评论

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