-
Notifications
You must be signed in to change notification settings - Fork 306
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
Positions for section and item are wrong when set PinnedHeaderListView.OnItemClickListener #36
Comments
I am also having this issue. |
Just found this: |
Did that solve this problem? |
Yes it did. onItemClick now returns the proper position for each element. The last element now really is the last element instead of the next Section Header. The code provided doesn't work since the abstract class can not access getHeaderViewsCount. The code below is working for me: `PinnedHeaderListView mPinnedHeaderListView = (PinnedHeaderListView) adapterView; rawPosition = rawPosition - mPinnedHeaderListView.getHeaderViewsCount(); if(rawPosition<0)return;` |
Nice. I'll try later. |
Yes, as of #26 , |
I tried to track positions for section and item, so I added codes below into your sample project:
But, all toasted messages imply the
section
andposition
are wrong. For example,So I reckoned codes
may be not accurate, which is from
OnItemClickListener implements AdapterView.OnItemClickListener
.So could you fix it?
The text was updated successfully, but these errors were encountered: