java - Does a fragment get destroyed when you pop the back stack? -
cannot find direct reply i'll inquire here.
if have 1 activity starts fragment attached , when button on pressed replaces fragment fragment b. added stack. if button pressed go b want know fragment b destroyed? because technically activity not need explicitly remove fragment b when stack pop?
thank reading
according android api, not destroyed, stopped. http://developer.android.com/guide/components/fragments.html#lifecycle
handling fragment lifecycle
stopped fragment not visible. either host activity has been stopped or fragment has been removed activity added stack. stopped fragment still live (all state , fellow member info retained system). however, no longer visible user , killed if activity killed.
java android android-fragments
No comments:
Post a Comment