When does onActivityCreated get called in a Fragment's Lifecycle?
Asked Answered
A

1

5

I am looking at the Fragment's Lifecycle here but cannot see where onActivityCreated gets called?

Anubis answered 6/7, 2015 at 3:13 Comment(1)
Here's a better diagram i.sstatic.net/cJ3QW.pngEdlin
T
7

From the docs docs:

Called when the fragment's activity has been created and this fragment's view hierarchy instantiated

So basically onActivityCreated is called after the host activity onCreate has returned.

Telephonist answered 6/7, 2015 at 3:25 Comment(1)
the link is brokenFustian

© 2022 - 2024 — McMap. All rights reserved.