Android基础之Fragment详解

一.定义 Fragment 表示 Activity中的行为或用户界面部分. 二.生命周期 1.onAttach 源码注释: called once the fragment is associated with its activity. 当fragment第一次和它的activity开始关联时回调此方法. 2.onCreate 源码注释: called to do initial creat
相关文章
相关标签/搜索