title: Android: Get the TextView in onItemClickListener() of ListView
body: <p>I am developing a SoundBoard application. My class extends ListActivity and the listview is as follows</p>
  
  <pre><code>[Image] [Text]
  [Image] [Text]
  [Image] [Text]
  </code></pre>
  
  <p>Now when the user clicks on any textview, I need to change the image of that textview. I implement that by the following code.</p>
  
  <pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View view,
             int position, long id) {
  
  TextView tv1 = (TextView) view;
  //Here I change the image with tv1 as reference
  }
  </code></pre>
  
  <p>But I need an <strong>alternate way to get the selected TextView</strong> . Because when I change the image using the above method,  if user selects third row in the list, the image changes in the third row of the second scroll page, the third row of the third scroll page and so on gets affected.Not only the required textview image changes, but one textview in upcoming scroll pages are changed when list is scrolled. Hope you get my problem. Any help is appreciated. Thanks</p>