Skip to content
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

Incorrect recycled view when viewtypecount > 1 #16

Closed
tuandigital opened this issue Oct 1, 2014 · 3 comments
Closed

Incorrect recycled view when viewtypecount > 1 #16

tuandigital opened this issue Oct 1, 2014 · 3 comments

Comments

@tuandigital
Copy link

When I use your library for an ArrayAdapter with viewtypecount > 1. The recycled view in getView is not match with view type. I found the solution in your QuickReturnAdapter.java, just change to the following lines:

@Override
public int getItemViewType(final int position) {
    if (position < numColumns)
        return wrappedAdapter.getViewTypeCount();
    return wrappedAdapter.getItemViewType(position - numColumns);
}

Could you take a look at this fix:)

Thanks,
-Tuan

@felipecsl
Copy link
Owner

can you submit a pull request with this change, please?
thanks

@babolabs
Copy link

I ran into the same issue, are there any updates on this topic?

@felipecsl
Copy link
Owner

Fixed via #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants