Android.Views.ViewTreeObserver: Method Members

The methods of Android.Views.ViewTreeObserver are listed below. For a list of all members, see the ViewTreeObserver Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

AddOnDrawListener(ViewTreeObserver.IOnDrawListener)
AddOnGlobalFocusChangeListener(ViewTreeObserver.IOnGlobalFocusChangeListener)
Register a callback to be invoked when the focus state within the view tree changes.
AddOnGlobalLayoutListener(ViewTreeObserver.IOnGlobalLayoutListener)
Register a callback to be invoked when the global layout state or the visibility of views within the view tree changes
AddOnPreDrawListener(ViewTreeObserver.IOnPreDrawListener)
Register a callback to be invoked when the view tree is about to be drawn
AddOnScrollChangedListener(ViewTreeObserver.IOnScrollChangedListener)
Register a callback to be invoked when a view has been scrolled.
AddOnTouchModeChangeListener(ViewTreeObserver.IOnTouchModeChangeListener)
Register a callback to be invoked when the invoked when the touch mode changes.
AddOnWindowAttachListener(ViewTreeObserver.IOnWindowAttachListener)
Register a callback to be invoked when the view hierarchy is attached to a window.
AddOnWindowFocusChangeListener(ViewTreeObserver.IOnWindowFocusChangeListener)
Register a callback to be invoked when the window focus state within the view tree changes.
DispatchOnDraw()
Notifies registered listeners that the drawing pass is about to start.
DispatchOnGlobalLayout()
Notifies registered listeners that a global layout happened.
DispatchOnPreDraw() : bool
Notifies registered listeners that the drawing pass is about to start.
RemoveGlobalOnLayoutListener(ViewTreeObserver.IOnGlobalLayoutListener)
Remove a previously installed global layout callback
RemoveOnDrawListener(ViewTreeObserver.IOnDrawListener)
RemoveOnGlobalFocusChangeListener(ViewTreeObserver.IOnGlobalFocusChangeListener)
Remove a previously installed focus change callback.
RemoveOnGlobalLayoutListener(ViewTreeObserver.IOnGlobalLayoutListener)
Remove a previously installed global layout callback
RemoveOnPreDrawListener(ViewTreeObserver.IOnPreDrawListener)
Remove a previously installed pre-draw callback
RemoveOnScrollChangedListener(ViewTreeObserver.IOnScrollChangedListener)
Remove a previously installed scroll-changed callback
RemoveOnTouchModeChangeListener(ViewTreeObserver.IOnTouchModeChangeListener)
Remove a previously installed touch mode change callback
RemoveOnWindowAttachListener(ViewTreeObserver.IOnWindowAttachListener)
Remove a previously installed window attach callback.
RemoveOnWindowFocusChangeListener(ViewTreeObserver.IOnWindowFocusChangeListener)
Remove a previously installed window focus change callback.