title: Listview smooth scroll until item is at top
body: <p>I am working on an android application, I have a list view with 10 items. I need to do the following. When the user clicks a button, I want the list to smooth scroll to item at position 5, so this item is displayed on the top of the list.</p>
  
  <p>I have found 2 methods that can be used for this, but both methods are not working exactly how I need:</p>
  
  <p><code>listView.setSelection(5)</code> this will scroll to the row and put it on top of the list But without animation  </p>
  
  <p><code>list.smoothScrollToPosition(5)</code> this will scroll the listview untill the row is visible but it will not put it on top (it is at the bottom of the page) and if the row is allready visible it will not scroll as it considers it is visible.</p>
  
  <p>So is there a way to have the same behavior as the <code>setSelection</code> method but with smoothscrolling?</p>
  
  <p>Thank you </p>