MainActivity 嵌入 Fragment 的每个函数执行的生命周期
2015-08-27 10:12
483 查看
MainActivity VS Fragment
onAttach(Fragment) onCreate(Fragment) onCreateView(Fragment) :初始化Fragment的视图
onCreate(MainActivity) onActivityCreated(Fragment) :在Activity创建之后,建立Fragment 的其它数据
onStart(MainActivity) onStart(Fragment) onResume(MainActivity) onResume(Fragment) :Activity 的生命周期函数在Fragment 的生命周期函数之后。
相关文章推荐
- hdoj.1023 Train Problem II【卡特兰数列】 2015/08/27
- 2015.6.17(Tair)
- oc assign / copy / retain / 容器 / 多态
- oc MRC内存管理机制alloc/retain/copy/release/autorelease
- Syntax error, type annotations are available only when source level is at least 1.8
- install ftp client on kail
- Container With Most Water
- LightOJ 1403 - Air Raid【二分匹配】
- Leetcode: Contains Duplicate
- Leetcode: Factorial Trailing Zeroes
- ideaiu的使用
- CCComponentContainer,CCComponent解析
- 安装APK:Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
- 异常:org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available
- Codeforces Round #317 [AimFund Thanks-Round] (Div. 1) B. Minimization 贪心 dp
- LeetCode题解:Factorial Trailing Zeroes
- HDU2473 - Junk-Mail Filter 利用虚拟数组实现删除并查集的节点
- 【图论】【最小生成树】[IOI2003]maintain
- [捉虫记录]关于Cascade Training Error的bug
- failure during conversion to COFF: file invalid or corrupt