views:

502

answers:

1

Is there a way that I can makle sure a given item in an android listview is entirely visible?

I'd like to be able to programmatically scroll to a specific item, like when I press a button for example.

+5  A: 

ListView.setSelection() will scroll the list so that the desired item is within the viewport.

Christopher
Setselection scrolls it to top of the view. I just need it to move as little as possible
CodeFusionMobile