开发者

Formatting listview row items on Selection

I have a ListView a row of which contains a couple of TextViews, an image and a button. My requirement is that when a row item is selected, the Text Style and color of the TextViews and the background drawabl开发者_高级运维e of the button should change.

I am not sure of how to do this.

Questions/Assumptions/What I think:

  1. Will having a state drawable for every item in the row work here? I have read some where that ListView has problems when there are focusable components present in its row.

  2. Should this be done programmatically? Like should I intercept the itemSelected/onRowFocus or equivalent method of the ListView object and make the necessary changes?

Please help.

Thanks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜