The Wayback Machine - https://web.archive.org/web/20201223040748/https://github.com/jinatonic/confetti/issues/61
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

[CRASHED] Views added to a FragmentContainerView must be associated with a Fragment. #61

Open
shilena91 opened this issue Nov 13, 2020 · 0 comments

Comments

@shilena91
Copy link

@shilena91 shilena91 commented Nov 13, 2020

This is my onCreateView

override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
       val view = inflater.inflate(R.layout.fragment_home, container, false)
       viewContainer = container
}

My app crashed everytime I call this:

confettiyManager = CommonConfetti.rainingConfetti(viewContainer, intArrayOf(Color.BLACK, Color.RED, Color.GREEN, Color.BLUE, Color.CYAN, Color.YELLOW, Color.MAGENTA)).infinite()

Logcat shows:

Views added to a FragmentContainerView must be associated with a Fragment. View com.github.jinatonic.confetti.ConfettiView{3bdc989 V.ED..... ......I. 0,0-0,0} is not associated with a Fragment.

Any help or hint is appreciated 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.