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

The specified child already has a parent #6

Closed
ppamorim opened this issue Mar 20, 2015 · 6 comments
Closed

The specified child already has a parent #6

ppamorim opened this issue Mar 20, 2015 · 6 comments
Labels

Comments

@ppamorim
Copy link

The specified child already has a parent. You must call removeView() on the child's parent first.

@shehabic
Copy link
Owner

This happens when you try to add a custom view, that's already visible/inflated, the work-around is to add it as resource i.e. R.layout.your_custom_layout but I'll add an extra thing to the lib to detach the view from its parent first before attaching to the popup menu

@a-v-ebrahimi
Copy link

I am not using custom view and have same problem, seems I should find another drop down menu :(
Your code is not ready for a serious job.

@shehabic
Copy link
Owner

can you share your setup here please?

@shehabic
Copy link
Owner

I believe with the new release this issue should be fixed, do you guys have any feedback or still facing this issue ?

@mjtrujill
Copy link

Your latest updates have solved my issue. I have this set up in a listview, so i have multiple buttons that can open a popup. The use case that was crashing my app would happen if I opened a popup from one item, then click outside the window or open popup from another item, then tried to open the original popup again. With the update, I have no issues.

@shehabic shehabic added bug and removed enhancement labels Mar 25, 2015
@shehabic
Copy link
Owner

I'm closing this issue, please if anynone's still facing an issue ask for reopening or open a new one with details.

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

4 participants