开发者

Android ListView Select a row through java

i have a listview ,and am write custom selector for the listview, my que开发者_Go百科stion is it possible to select a row through java without scrolling the row to top.


Try this:

this.getListView().setSelection(position);


try this I hope it is useful for you..

ListView.setSelection(position);

if you want to move at top then

 position = 0;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜