ClickListener in PagerAdapter fires on wrong position : <p>I'm using <a href="https://github.com/crosswall/Android-Coverflow">this project (Android-Coverflow)</a> in my app, which works as expected with one exception: when setting a <code>View.OnClickListener</code> on the single items in <code>instantiateItem</code> I do get wrong positions, i.e.:</p>

<ul>
<li>the middle item returns the correct position.</li>
<li>the item on the right of the middle item displays the correct position (middle-item + 1)</li>
<li>the item to the left of the middle item displays the wrong position: the same as the item to the right.</li>
</ul>

<p>So if I'm scrolling so far that item with index 3 is in the middle, I get</p>

<ul>
<li>3 for the middle item (correct)</li>
<li>4 for the item to the right (correct)</li>
<li>4 for the item to the left (wrong)</li>
</ul>

<p>I add the <code>ClickListener</code> inside the <code>instantiateItem</code> method, so I would expect it to be correct...</p>

<p>What could I probably be missing here?</p>

<p>I uploaded the adapted project to Github: <a href="https://github.com/haemi/Android-Coverflow-Clicklistener-Issue">https://github.com/haemi/Android-Coverflow-Clicklistener-Issue</a> - inside "transformer coverflow 2" the issue is visible. The according code is here: <a href="https://github.com/haemi/Android-Coverflow-Clicklistener-Issue/blob/master/app/src/main/java/me/crosswall/coverflow/demo/Normal2Activity.java#L63">https://github.com/haemi/Android-Coverflow-Clicklistener-Issue/blob/master/app/src/main/java/me/crosswall/coverflow/demo/Normal2Activity.java#L63</a></p>
