1.Fragment创建时的生命周期
2.二者创建时的关系
Fragment先依附于大哥 onAttach,onCreate,
Activity后onCreate,Fragment再布局,渲染,onStart;
Activity最后onStart onResume
Fragment最后才能交互 onResume
3.Activity与Fragment的暂停关系
切换到另一个Activity2后,Fragment先一步onPause,Activity后一步
Activity2开始onStart,onResume,
Fragment先一步onStop ,Activity后一步
先Fragment摧毁一系列,取消依附后Activity再onDestroy