-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParallaxGridView onItemClickListener position #3
Comments
This doesn't seem like a good implementation of Here is an example, that's tested and it's working, of an implementation on the example project:
|
that was a typo you are calling setParallaxView after setOnItemClickListener would that make any difference? |
this is how my code looks like:
I simplified the code so hopefully there is no typo it again :) |
I don't see anything wrong with the code. There should be something wrong with anything else. I tested the method and it is in fact working. Can you check if the returned view from |
view and parent are correct |
I had the same problem. Viewing the code I saw that you must to subtract the "numHeadersAndPlaceholders" cause they affect to the count of items. This is the headersCount * numberOfColumns, so:
|
Then that is a bug that should be looked at. |
when I click on any item position is total number of items. for example with 21 items in grid when I click in any item, position is 21.
parallaxGridView.setOnItemClickListener(new setOnItemClickListener(){
@OverRide
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
Log.v("Item Clicked",position+"");
}
});
The text was updated successfully, but these errors were encountered: