Beispiel #1
0
 @Override
 public void onDestroyView() {
   super.onDestroyView();
   InputFragmentView = null; // now cleaning up!
   gifFromResource.recycle();
   Log.d("Exercise Type", "DestroyView Called");
 }
    @Override
    public void onDestroyView() {
      Drawable drawable = imageView.getDrawable();
      if (drawable != null) {
        if (drawable instanceof GifDrawable) {
          ((GifDrawable) drawable).recycle();
        } else {
          drawable.setCallback(null);
        }
        imageView.setImageDrawable(null);
      }

      super.onDestroyView();
      if (task != null && task.loading && !task.isCancelled()) {
        task.cancel(true);
      }
    }