android-lifecycle

A diagram of the Android Activity / Fragment lifecycle

  • 所有者: xxv/android-lifecycle
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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 steve@staticfree.info.

Vector versions suitable for printing: PDF or SVG

A Complete Android Fragment & Activity Lifecycle

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.

主要指標

概覽
名稱與所有者xxv/android-lifecycle
主編程語言Java
編程語言Java (語言數: 1)
平台
許可證
所有者活动
創建於2014-04-18 14:26:22
推送於2021-08-19 00:44:07
最后一次提交
發布數1
最新版本名稱v0.9.0 (發布於 )
第一版名稱v0.9.0 (發布於 )
用户参与
星數5.3k
關注者數260
派生數675
提交數15
已啟用問題?
問題數30
打開的問題數25
拉請求數0
打開的拉請求數2
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?