@Override public void onDestroy() { LogUtils.d(TAG, "onDestroy: " + this.getClass().getName()); unRegisterReceiver(); /* if (mProgressDialog != null && mProgressDialog.isShowing()) { mProgressDialog.dismiss(); }*/ super.onDestroy(); }
@Override public void onHiddenChanged(boolean hidden) { super.onHiddenChanged(hidden); LogUtils.d(TAG, "onHiddenChanged: " + this.getClass().getName()); if (!hidden) { onFragmentShow(); } else { onFragmentHide(); } }
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { LogUtils.i("openFragment: " + this.getClass().getSimpleName()); context = getActivity(); onPreConfigured(); containerView = inflater.inflate(onSetContainerViewId(), container, false); noNetworkView = inflater.inflate(R.layout.no_network_layout, null, false); onInitProgressBar(); onInitView(); onInitNoNetworkView(); onInitListener(); onRegisterReceiver(); onLoadNetworkData(); return containerView; }
@Override public void onDestroyView() { LogUtils.d(TAG, "onDestroyView: " + this.getClass().getName()); super.onDestroyView(); }
@Override public void onPause() { LogUtils.d(TAG, "onPause: " + this.getClass().getName()); super.onPause(); // onFragmentPause(); }
public void onFragmentHide() { LogUtils.d(TAG, "onFragmentHide: " + this.getClass().getName()); }
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { LogUtils.d(TAG, "requestCode:" + requestCode + " resultCode:" + resultCode); super.onActivityResult(requestCode, resultCode, data); }