Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A diagram of the Android Activity / Fragment lifecycle

NotificationsYou must be signed in to change notification settings

xxv/android-lifecycle

Repository files navigation

After struggling with trying to figure out how various pieces fit together,I've done some research and put together the complete Android Activity/Fragmentlifecycle chart. This has two parallel lifecycles (activities and fragments)which are organized vertically by time. Lifecycle stages will occur in thevertical order in which they're displayed, across activities and fragments. Inthis way, you can see how your fragments interact with your activities.

If you see any discrepancies or errors in this diagram, please submit a pullrequest or contactsteve@staticfree.info.

Activity and Fragment Lifecycles

Vector versions suitable for printing:PDF orSVG

A Complete Android Fragment & Activity Lifecycle

Activity, Fragment and FragmentManager Lifecycle Integration

Vector versions suitable for printingPDF2 orSVG2

A Integration Of Fragments into Activities via Fragment Manager

Some Notes

This intentionally leaves off user-triggered callbacks (such asonOptionsItemSelected()), focusing on the lifecycle stages that are triggeredby the system, in order to keep the diagram more focused on the parts that arehard to follow.

The canonical format of the diagram is theDia file. It was then exportedto SVG, hand-tweaked to fix font sizes, and imported intoInkscape to do anSVG, PDF, and PNG render. I hope to find a better workflow for this going forward;patches always welcome.

License

This diagram (in all its various forms and renders) is licensed under theCreative Commons BY-SA 4.0 license. If you would like it under adifferent Creative Commons license, please contact me and we can figuresomething out.

About

A diagram of the Android Activity / Fragment lifecycle

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp