次の方法で共有


ViewTreeObserver.DispatchOnPreDraw Method

Definition

Notifies registered listeners that the drawing pass is about to start.

[Android.Runtime.Register("dispatchOnPreDraw", "()Z", "")]
public bool DispatchOnPreDraw ();
[<Android.Runtime.Register("dispatchOnPreDraw", "()Z", "")>]
member this.DispatchOnPreDraw : unit -> bool

Returns

True if the current draw should be canceled and rescheduled, false otherwise.

Attributes

Remarks

Notifies registered listeners that the drawing pass is about to start. If a listener returns true, then the drawing pass is canceled and rescheduled. This can be called manually if you are forcing the drawing on a View or a hierarchy of Views that are not attached to a Window or in the GONE state.

Java documentation for android.view.ViewTreeObserver.dispatchOnPreDraw().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to