开发者

Android:initiate the listView items

I have a listview and take TextView as the list-item,now I need the first item's state to be selected when the listview has been initiated. In other words , i have giv开发者_高级运维e the TextView a selector drawable , so i want the item to be selected when it first shows in the list. I wonder if i have made it clear. Hope your help coming soon. Thanks first!

PS: I add the list items by my own adapter extending from SimpleAdapter.


Either setSelection or singleChoiceList is your answer.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜