开发者

How to select the first item in a ListView by default

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜