title: How to know which image is set on ImageView?
body: <p>I have an ImageView that can have either of two images ( say image 1 &amp; image 2, stored in drawable). If ImageView contains image1 I want click on that ImageView to be disabled and if image 2 is being displayed, on click image should change to image1 &amp; click is disabled on ImageView.<br>
  I am unable to find way to know which image is currently being displayed on ImageView.</p>
  
  <p>This is my code</p>
  
  <pre><code>ImageView select = (ImageView) view.findViewById(R.id.select); 
  select.setOnClickListener(new OnClickListener() { 
  public void onClick(View v) { 
  // TODO Auto-generated method stub 
  } 
  });
  </code></pre>