android - Lifecycle methods executed on Fragment object creation -
what fragment
life cycle methods executed when fragment object only created inside activity before being displayed using fragment transaction?
while create object of fragment creating object of normal class. there noting special in creating object fragment.
once attached fragment manager , when begin transition. attached activity , onattach(activity)
called once fragment associated activity.
after remaining life cycle methods called.
ondetach()
called prior fragment no longer being associated activity.
for more info @ link. https://developer.android.com/reference/android/app/fragment.html
Comments
Post a Comment