8000 [CRASHED] Views added to a FragmentContainerView must be associated with a Fragment. · Issue #61 · jinatonic/confetti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[CRASHED] Views added to a FragmentContainerView must be associated with a Fragment. #61
Open
@shilena91

Description

@shilena91

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 🙏

3DFC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0