title: getFirstVisiblePosition() returns wrong value in Gallery View
body: <p>I have a Gallery view created with a SimpleAdapter that extends BaseAdapter. It contains more items than what it can fit in the screen. </p>
  
  <p>So I'm using <code>Gallery.getFirstVisiblePosition()</code> and <code>Gallery.getLastVisiblePosition()</code> to get the first and last visible position. But these functions doesn't always return the correct values especially after setting the selected position by calling <code>mGallery.setSelection()</code> followed by a <code>SimpleAdapter.notifyDataChanged()</code> call. Most of the time it <code>getFirstVisiblePosition()</code> returns 0 even if the first element is not visible. </p>
  
  <p>Also note that the no. of visible items in Gallery is different in portrait and landscape mode. The value returned by <code>getFirstVisiblePosition()</code> look correct in landscape but is returned wrong in portrait mode.</p>
  
  <p>Anyone has any thoughts/ideas?</p>
  
  <p>Thanks!</p>