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

java.lang.ClassCastException #26

Closed
imoblife opened this issue Sep 11, 2014 · 3 comments
Closed

java.lang.ClassCastException #26

imoblife opened this issue Sep 11, 2014 · 3 comments
Labels

Comments

@imoblife
Copy link

When I touched and begin to scroll, it just crashed.

java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
at com.diegocarloslima.fgelv.lib.FloatingGroupExpandableListView.createFloatingGroupView(FloatingGroupExpandableListView.java:416)

@imoblife imoblife changed the title java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams java.lang.ClassCastException Sep 11, 2014
@imoblife
Copy link
Author

P.S. 4.4 is fine, but 2.3 isn't.

@imoblife
Copy link
Author

I changed to this, and it works:

        // params = (AbsListView.LayoutParams) generateDefaultLayoutParams();
        params = (AbsListView.LayoutParams) new AbsListView.LayoutParams(
                AbsListView.LayoutParams.MATCH_PARENT,
                AbsListView.LayoutParams.WRAP_CONTENT, 0);  

diegocarloslima added a commit that referenced this issue Sep 22, 2014
@diegocarloslima
Copy link
Owner

Thank you for your contribution!

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

No branches or pull requests

2 participants