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

animateLayoutChanges causes crash #29

Open
SiavashB opened this issue Jul 7, 2016 · 0 comments
Open

animateLayoutChanges causes crash #29

SiavashB opened this issue Jul 7, 2016 · 0 comments

Comments

@SiavashB
Copy link

SiavashB commented Jul 7, 2016

If the LinearLayout has animateLayoutChanges set to true, dragging a child view causes

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
                                                                            at android.view.ViewGroup.addViewInner(ViewGroup.java:3880)
                                                                            at android.view.ViewGroup.addView(ViewGroup.java:3733)
                                                                            at android.view.ViewGroup.addView(ViewGroup.java:3678)
                                                                            at com.jmedeisis.draglinearlayout.DragLinearLayout.onDrag(DragLinearLayout.java:442)
                                                                            at com.jmedeisis.draglinearlayout.DragLinearLayout.onTouchEvent(DragLinearLayout.java:661)

I tested this in an empty test project with simple TextViews as the children, to make sure there is nothing else causing it.

For now I think you should add to the "limitations" section that it will not work with animateLayoutChanges

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

1 participant