onActivityCreated 何时在 Fragment 的生命周期中被调用?
When does onActivityCreated get called in a Fragment's Lifecycle?
我正在查看 Fragment's Lifecycle here but cannot see where onActivityCreated 被调用?
来自文档 docs:
Called when the fragment's activity has been created and this
fragment's view hierarchy instantiated
所以基本上 onActivityCreated
是在主持人 activity onCreate
返回后调用的。
我正在查看 Fragment's Lifecycle here but cannot see where onActivityCreated 被调用?
来自文档 docs:
Called when the fragment's activity has been created and this fragment's view hierarchy instantiated
所以基本上 onActivityCreated
是在主持人 activity onCreate
返回后调用的。