ensure visible on android listview?

android, listactivity, listview

Solution

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

Problem

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.

Original source