Exemplo n.º 1
0
 @Override
 public void onDestroy() {
   LogUtils.d(TAG, "onDestroy: " + this.getClass().getName());
   unRegisterReceiver();
   /* if (mProgressDialog != null && mProgressDialog.isShowing()) {
       mProgressDialog.dismiss();
   }*/
   super.onDestroy();
 }
Exemplo n.º 2
0
  @Override
  public void onHiddenChanged(boolean hidden) {
    super.onHiddenChanged(hidden);

    LogUtils.d(TAG, "onHiddenChanged: " + this.getClass().getName());

    if (!hidden) {
      onFragmentShow();
    } else {
      onFragmentHide();
    }
  }
Exemplo n.º 3
0
  @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;
  }
Exemplo n.º 4
0
 @Override
 public void onDestroyView() {
   LogUtils.d(TAG, "onDestroyView: " + this.getClass().getName());
   super.onDestroyView();
 }
Exemplo n.º 5
0
 @Override
 public void onPause() {
   LogUtils.d(TAG, "onPause: " + this.getClass().getName());
   super.onPause();
   // onFragmentPause();
 }
Exemplo n.º 6
0
 public void onFragmentHide() {
   LogUtils.d(TAG, "onFragmentHide: " + this.getClass().getName());
 }
Exemplo n.º 7
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   LogUtils.d(TAG, "requestCode:" + requestCode + " resultCode:" + resultCode);
   super.onActivityResult(requestCode, resultCode, data);
 }