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;
精彩评论