Fragment
2016-10-15 本文已影响54人
风风风筝

class MyActivity extends FragmentActivity {
@Override
protected void onStart() {
super.onStart(); -->Fragment onAttach-->onCreate-->onCreateView-->onViewCreated-->onActivityCreated
....
}
@Override
protected void onResume() {
super.onResume();
....
} -->Fragment onResume
@Override
protected void onStop() {
super.onStop(); -->Fragment onStop
....
}
@Override
protected void onDestroy() {
super.onDestroy(); -->Fragment onDestoryView-->onDestory-->onDetach
....
}
}