开发者

Android-Widget : Changing ListView selector color using RemoteView

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜