开发者

How to select the first item in a ListView by default

开发者 https://www.devze.com 2023-01-14 21:21 出处:网络
When my app loads, I w开发者_如何学编程ant the first item in the listview to already be selected. how can I do this?in your list view activity

When my app loads, I w开发者_如何学编程ant the first item in the listview to already be selected. how can I do this?


in your list view activity

getListView().setSelection(0);
0

精彩评论

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