fragment replace 周期

来源:互联网 发布:sql将string转int 编辑:程序博客网 时间:2024/05/17 00:56
加载:
11-11 13:54:37.737: W/MerchantFragment(495): onAttach11-11 13:54:37.737: W/MerchantFragment(495): onCreate11-11 13:54:37.752: W/MerchantFragment(495): onCreateView()11-11 13:54:37.867: W/MerchantFragment(495): onViewCreated11-11 13:54:37.867: W/MerchantFragment(495): onStart11-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): onPause11-11 13:55:16.832: W/MerchantFragment(495): onStop11-11 13:55:16.837: W/MerchantFragment(495): onDestroyView11-11 13:55:16.837: W/MerchantFragment(495): onDestroy11-11 13:55:16.837: W/MerchantFragment(495): onDetach



0 0
原创粉丝点击