title: Get id / position of ListView row
body: <p>I have an Android ListView with a bunch of rows. Each row contains an image and some text. If I click on the image of a row, I want to perform action A, if I click on any other place in the row, I want to perform action B. Both of these actions need the id of the ListView item to work. </p>
  
  <p>So far, for action B, I simply used listview's <code>onItemClick</code>, where I got the id from the parameter. However, as far as I know, the only way to find out on which view in  the row itself the user clicked, is to add an <code>onClick</code> event handler to the ImageView that triggers action A. In that case, I only get the View that was clicked, though - not the id of the row that the ImageView is in. </p>
  
  <p>My question is - how do I go from a View object to getting the id of the parent row within the ListView?</p>