Example usage for Java android.view ViewTreeObserver fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addOnDrawListener(OnDrawListener listener) Register a callback to be invoked when the view tree is about to be drawn. Note: this method cannot be invoked from android.view.ViewTreeObserver.OnDrawListener#onDraw() . |
void | addOnGlobalFocusChangeListener(OnGlobalFocusChangeListener listener) Register a callback to be invoked when the focus state within the view tree changes. |
void | addOnGlobalLayoutListener(OnGlobalLayoutListener listener) Register a callback to be invoked when the global layout state or the visibility of views within the view tree changes |
void | addOnPreDrawListener(OnPreDrawListener listener) Register a callback to be invoked when the view tree is about to be drawn |
void | addOnScrollChangedListener(OnScrollChangedListener listener) Register a callback to be invoked when a view has been scrolled. |
void | addOnTouchModeChangeListener(OnTouchModeChangeListener listener) Register a callback to be invoked when the invoked when the touch mode changes. |
void | addOnWindowFocusChangeListener(OnWindowFocusChangeListener listener) Register a callback to be invoked when the window focus state within the view tree changes. |
boolean | isAlive() Indicates whether this ViewTreeObserver is alive. |
void | removeGlobalOnLayoutListener(OnGlobalLayoutListener victim) Remove a previously installed global layout callback |
void | removeOnDrawListener(OnDrawListener victim) Remove a previously installed pre-draw callback. Note: this method cannot be invoked from android.view.ViewTreeObserver.OnDrawListener#onDraw() . |
void | removeOnGlobalFocusChangeListener(OnGlobalFocusChangeListener victim) Remove a previously installed focus change callback. |
void | removeOnGlobalLayoutListener(OnGlobalLayoutListener victim) Remove a previously installed global layout callback |
void | removeOnPreDrawListener(OnPreDrawListener victim) Remove a previously installed pre-draw callback |
void | removeOnTouchModeChangeListener(OnTouchModeChangeListener victim) Remove a previously installed touch mode change callback |