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
Cannot use AsymmetricGridView with an adapter that contains multiple view types #30
Comments
Did you try to override the AsymmetricGridViewAdapter class? So that you can provide your expected values such as:
|
Yes I have done that. The result is that multiple view types now appear,
|
I have found a temporary workaround. In the getview() method of my adapter, I don't write the code if (convertView != null) The result is that the getview() method will always instantiate a new view hence view recycling is non existent. My guess is, the problem is with views that have been cached by the adapter. The method viewPool.get() in AsymmetricGridViewAdapter.java seems to be returning the wrong view type from cache. |
Initial fix for multiple adapter view types (issue #30)
When using an adapter with multiple view types (in my case 4), the overridden method getViewTypeCount() never gets called. The adapter only uses one view type in getView (the first one to be inflated). Please provide a fix for this. Thanks.
The text was updated successfully, but these errors were encountered: