https://developer.android.com/guide/components/fragments.html#Example
上面是官方文档
在进入的时候,先调用的Activity 的方法,在调用该activity所有fragment的对应的生命周期的方法.
比如回来时顺序为activity#onResume(),fragment#onResume().
页面完全不可见时顺序为 fragment#onPause(), activity#onPause(), fragment#onStop() , activity#onStop(),就是相当于栈结构的顺序.