Udostępnij za pośrednictwem


View.Overlay Property

Definition

Returns the overlay for this view, creating it if it does not yet exist.

public virtual Android.Views.ViewOverlay? Overlay { [Android.Runtime.Register("getOverlay", "()Landroid/view/ViewOverlay;", "GetGetOverlayHandler")] get; }
[<get: Android.Runtime.Register("getOverlay", "()Landroid/view/ViewOverlay;", "GetGetOverlayHandler")>]
member this.Overlay : Android.Views.ViewOverlay

Property Value

The ViewOverlay object for this view.

Attributes

Remarks

Returns the overlay for this view, creating it if it does not yet exist. Adding drawables to the overlay will cause them to be displayed whenever the view itself is redrawn. Objects in the overlay should be actively managed: remove them when they should not be displayed anymore. The overlay will always have the same size as its host view.

Note: Overlays do not currently work correctly with SurfaceView or TextureView; contents in overlays for these types of views may not display correctly.

Java documentation for android.view.View.getOverlay().

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

See also