Tabnine Logo
View.removeOnAttachStateChangeListener
Code IndexAdd Tabnine to your IDE (free)

How to use
removeOnAttachStateChangeListener
method
in
android.view.View

Best Java code snippets using android.view.View.removeOnAttachStateChangeListener (Showing top 20 results out of 315)

origin: bumptech/glide

private void maybeRemoveAttachStateListener() {
 if (attachStateListener == null || !isAttachStateListenerAdded) {
  return;
 }
 view.removeOnAttachStateChangeListener(attachStateListener);
 isAttachStateListenerAdded = false;
}
origin: bumptech/glide

private void maybeRemoveAttachStateListener() {
 if (attachStateListener == null || !isAttachStateListenerAdded) {
  return;
 }
 view.removeOnAttachStateChangeListener(attachStateListener);
 isAttachStateListenerAdded = false;
}
origin: trello/RxLifecycle

  @Override
  protected void onDispose() {
    view.removeOnAttachStateChangeListener(this);
  }
}
origin: mikepenz/Android-Iconics

  /**
   * Clear all animations from previously provided drawable and view
   */
  public void unset() {
    mDrawable = null;
    if (mView != null) {
      mView.removeOnAttachStateChangeListener(mListener);
      mView = null;
    }
    mIsAttached = false;
  }
}
origin: bluelinelabs/Conductor

public void unregisterAttachListener(View view) {
  view.removeOnAttachStateChangeListener(this);
  if (childOnAttachStateChangeListener != null && view instanceof ViewGroup) {
    findDeepestChild((ViewGroup)view).removeOnAttachStateChangeListener(childOnAttachStateChangeListener);
  }
}
origin: bluelinelabs/Conductor

@Override
public void onViewAttachedToWindow(@NonNull View v) {
  v.removeOnAttachStateChangeListener(this);
  if (changeListener != null) {
    changeListener.onChangeCompleted();
    changeListener = null;
    container = null;
  }
}
origin: bluelinelabs/Conductor

@Override
public void onViewAttachedToWindow(View v) {
  if (!attached) {
    attached = true;
    attachListener.onAttached();
    v.removeOnAttachStateChangeListener(this);
    childOnAttachStateChangeListener = null;
  }
}
origin: bluelinelabs/Conductor

private void removeListener() {
  if (viewTreeObserver.isAlive()) {
    viewTreeObserver.removeOnPreDrawListener(this);
  } else {
    view.getViewTreeObserver().removeOnPreDrawListener(this);
  }
  view.removeOnAttachStateChangeListener(this);
}
origin: bluelinelabs/Conductor

};
view.addOnAttachStateChangeListener(tmpListener);
view.removeOnAttachStateChangeListener(tmpListener);
listeners = getAttachStateListeners(view);
origin: lyft/scoop

@Override
public void onViewAttachedToWindow(View v) {
  transitionListener.onTransitionCompleted();
  v.removeOnAttachStateChangeListener(this);
}
origin: lyft/scoop

@Override
public void onViewAttachedToWindow(View v) {
  transitionListener.onTransitionCompleted();
  v.removeOnAttachStateChangeListener(this);
}
origin: GcsSloop/diycode

@Override public void onGlobalFocusChanged(View oldFocus, View newFocus) {
 if (newFocus == null) {
  return;
 }
 if (oldFocus != null) {
  oldFocus.removeOnAttachStateChangeListener(this);
 }
 Looper.myQueue().removeIdleHandler(this);
 newFocus.addOnAttachStateChangeListener(this);
}
origin: GcsSloop/diycode

 servedView.removeOnAttachStateChangeListener(this);
 servedView.addOnAttachStateChangeListener(this);
} else {
origin: GcsSloop/diycode

@Override public void onViewDetachedFromWindow(View v) {
 v.removeOnAttachStateChangeListener(this);
 Looper.myQueue().removeIdleHandler(this);
 Looper.myQueue().addIdleHandler(this);
}
origin: noties/Markwon

  @Override
  public void onViewDetachedFromWindow(View v) {
    unschedule(textView);
    v.removeOnAttachStateChangeListener(this);
    v.setTag(R.id.markwon_drawables_scheduler, null);
  }
};
origin: samlss/Broccoli

  @Override
  public void onViewDetachedFromWindow(View v) {
    v.removeOnAttachStateChangeListener(this);
    cancelAnimation();
  }
});
origin: klinker24/launcher3

  public void markCompleted() {
    mTasks.clear();
    mCompleted = true;
    if (mAttachedView != null) {
      mAttachedView.getViewTreeObserver().removeOnDrawListener(this);
      mAttachedView.removeOnAttachStateChangeListener(this);
    }
    if (mLauncher != null) {
      mLauncher.clearPendingExecutor(this);
    }
  }
}
origin: klinker24/Android-Blur-Launcher

  public void markCompleted() {
    mTasks.clear();
    mCompleted = true;
    if (mAttachedView != null) {
      mAttachedView.getViewTreeObserver().removeOnDrawListener(this);
      mAttachedView.removeOnAttachStateChangeListener(this);
    }
    if (mLauncher != null) {
      mLauncher.clearPendingExecutor(this);
    }
  }
}
origin: bodismile/bmob-newim-demo

@Override public void onGlobalFocusChanged(View oldFocus, View newFocus) {
 if (newFocus == null) {
  return;
 }
 if (oldFocus != null) {
  oldFocus.removeOnAttachStateChangeListener(this);
 }
 Looper.myQueue().removeIdleHandler(this);
 newFocus.addOnAttachStateChangeListener(this);
}
origin: bodismile/bmob-newim-demo

@Override public void onViewDetachedFromWindow(View v) {
 v.removeOnAttachStateChangeListener(this);
 Looper.myQueue().removeIdleHandler(this);
 Looper.myQueue().addIdleHandler(this);
}
android.viewViewremoveOnAttachStateChangeListener

Popular methods of View

  • findViewById
  • setOnClickListener
  • getId
  • setVisibility
  • getLayoutParams
  • getTag
  • getHeight
  • getWidth
  • setTag
  • getContext
  • onDraw
  • getTop
  • onDraw,
  • getTop,
  • setLayoutParams,
  • setBackgroundColor,
  • getMeasuredHeight,
  • getParent,
  • getMeasuredWidth,
  • getBottom,
  • getLeft,
  • layout

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now