百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

android-lifecycle

> 编程语言
开源

Android Activity/Fragment 生命周期的图表

5.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Android Activity/Fragment 生命周期的图表

Complete Android Fragment & Activity Lifecycle

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

If you see any discrepancies or errors in this diagram, please submit a pull request or contact [email protected].

Activity and Fragment Lifecycles

Vector versions suitable for printing: PDF or SVG

Activity, Fragment and FragmentManager Lifecycle Integration

Vector versions suitable for printing PDF2 or SVG2

Some Notes

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

The canonical format of the diagram is the Dia file. It was then exported to SVG, hand-tweaked to fix font sizes, and imported into Inkscape to do an SVG, 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 the Creative Commons BY-SA 4.0 license. If you would like it under a different Creative Commons license, please contact me and we can figure something out.

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Java

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言