加载:
11-11 13:54:37.737: W/MerchantFragment(495): onAttach
11-11 13:54:37.737: W/MerchantFragment(495): onCreate
11-11 13:54:37.752: W/MerchantFragment(495): onCreateView()
11-11 13:54:37.867: W/MerchantFragment(495): onViewCreated
11-11 13:54:37.867: W/MerchantFragment(495): onStart
11-11 13:54:37.872: W/MerchantFragment(495): onResume
被其他 fragment 替换后
transaction = getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.fragment_container, fragment);
transaction.commit();
11-11 13:55:16.832: W/MerchantFragment(495): onPause
11-11 13:55:16.832: W/MerchantFragment(495): onStop
11-11 13:55:16.837: W/MerchantFragment(495): onDestroyView
11-11 13:55:16.837: W/MerchantFragment(495): onDestroy
11-11 13:55:16.837: W/MerchantFragment(495): onDetach