title: How to get current view item in list view after scrolling
body: <p><br> <br>
  While scrolling listview, I want to get current view which is having a textview and an image. <br>Based on this I want to show starting letter of the first visible contact view item on top of list similar to our contact list.<br> I tried with the following, But this is giving invalid index after scrolling.</p>
  
  <pre><code>HomeContactView extends AppCompatActivity implements AbsListView.OnScrollListener
  </code></pre>
  
  <p>overided corresponding methods</p>
  
  <pre><code> @Override
      public void onScrollStateChanged(AbsListView view, int scrollState) {
  final ListView listView = mainListView;
          int location = listView.getFirstVisiblePosition();
  }
  </code></pre>
  
  <p>Through this I am not able to get the current focused view and its elements.How to achieve this? Any help is really appreciable.
  <br><a href="https://i.stack.imgur.com/uQqfp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uQqfp.png" alt="enter image description here"></a></p>