title: change image of list on list click android:
body: <p>I have a ListView of 5 rows and each rows have different images. When I click on listview at any position then ListView image on that row changes only and each row have diffrent image on list.</p>
  
  <p>I have ListView items containing ImageView and TextView in each rows and by default in each row I show image corresponding to text in row and when I click on any position of list then I want to change the image corresponding to list click position. I have to show two different image on list click. </p>
  
  <p>In a list there are 2 images one is for event "off" and second image is for "on".</p>
  
  <pre><code>public void onListItemClick(ListView parent, View v, int position, long id) { 
         Toast.makeText(getApplicationContext(), "You have selected"
                      +(position+1)+"th item",  Toast.LENGTH_SHORT).show();
  }![enter image description here][1]
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/5MVnA.png" alt="enter image description here"></p>