开发者

Android:initiate the listView items

开发者 https://www.devze.com 2023-03-16 19:15 出处:网络
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

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

精彩评论

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