public void release() {
    for (int i = 0; i < sections.size(); i++) {
      sections.get(i).releaseViews();
    }

    templatesByBinding.clear();
    sections.clear();

    if (wrapper != null) {
      wrapper = null;
    }

    if (listView != null) {
      listView.setAdapter(null);
      listView = null;
    }
    if (headerView != null) {
      headerView = null;
    }
    if (footerView != null) {
      footerView = null;
    }

    super.release();
  }
 @Override
 public void release() {
   if (tableView != null) {
     tableView.release();
     tableView = null;
   }
   nativeView = null;
   super.release();
 }
Example #3
0
 public void releaseViews() {
   if (view != null) {
     if (children != null) {
       for (TiViewProxy p : children) {
         p.releaseViews();
       }
     }
     view.release();
     view = null;
   }
   setModelListener(null);
 }
 @Override
 public void release() {
   if (tableView != null) {
     tableView.release();
     tableView = null;
   }
   if (proxy != null && proxy.getTiContext() != null) {
     proxy.getTiContext().removeOnLifecycleEventListener(this);
   }
   nativeView = null;
   super.release();
 }
 @Override
 public void release() {
   if (mPager != null) {
     mPager.removeAllViews();
     //			for (int i = mPager.getChildCount() - 1; i >=  0; i--) {
     //				mPager.removeViewAt(i);
     //			}
   }
   if (mViews != null) {
     for (TiViewProxy viewProxy : mViews) {
       viewProxy.releaseViews(true);
     }
     mViews.clear();
   }
   super.release();
 }
Example #6
0
 @Override
 public void release() {
   if (fragment != null) {
     FragmentManager fragmentManager = fragment.getFragmentManager();
     if (fragmentManager != null) {
       FragmentTransaction transaction = null;
       Fragment tabFragment = fragmentManager.findFragmentById(android.R.id.tabcontent);
       if (tabFragment != null) {
         FragmentManager childManager = tabFragment.getChildFragmentManager();
         transaction = childManager.beginTransaction();
       } else {
         transaction = fragmentManager.beginTransaction();
       }
       transaction.remove(fragment);
       transaction.commit();
     }
   }
   super.release();
 }
 @Override
 public void release() {
   super.release();
   if (views != null) {
     for (TiUIView view : views) {
       view.release();
     }
     views = null;
   }
   if (content != null) {
     content.removeAllViews();
     content = null;
   }
   if (hasCheckDrawable != null) {
     hasCheckDrawable.setCallback(null);
     hasCheckDrawable = null;
   }
   if (hasChildDrawable != null) {
     hasChildDrawable.setCallback(null);
     hasChildDrawable = null;
   }
 }
  @Override
  public void release() {
    super.release();
    if (loader != null) {
      synchronized (loader) {
        loader.notify();
      }
      loader = null;
    }
    animating.set(false);
    isStopping.set(true);
    synchronized (releasedLock) {
      if (imageSources != null) {
        imageSources.clear();
        imageSources = null;
      }
    }

    if (timer != null) {
      timer.cancel();
      timer = null;
    }
    defaultImageSource = null;
  }
Example #9
0
 public void clearView() {
   if (view != null) {
     view.release();
   }
   view = null;
 }