依附在activity上的fragment生命周期与activity生命周期回调顺序
Activity创建
Activity onCreate
Fragment onAttach
Fragment onCreate
Fragment onCreateView
Fragment onActivityCreate
Fragment onStart
Activity onStart
Activity onResume
Fragment onResume
Activity退居后台或者跳转到其他activity
Fragment onPause
Activity onPause
Fragment onStop
Activity onStop
Activity重新回到前台
Fragment onStart
Activity onStart
Activity onResume
Fragment onResume
Activity销毁
Fragment onDestroyView
Fragment onDestroy
Fragment onDetach
Activity onDestroy