Język

Animation.DetachWallpaper Property

Definition

Gets or sets whether to detach the wallpaper during a window animation.

public virtual bool DetachWallpaper { [Android.Runtime.Register("getDetachWallpaper", "()Z", "GetGetDetachWallpaperHandler")] get; [Android.Runtime.Register("setDetachWallpaper", "(Z)V", "GetSetDetachWallpaper_ZHandler")] set; }
[<get: Android.Runtime.Register("getDetachWallpaper", "()Z", "GetGetDetachWallpaperHandler")>]
[<set: Android.Runtime.Register("setDetachWallpaper", "(Z)V", "GetSetDetachWallpaper_ZHandler")>]
member this.DetachWallpaper : bool with get, set

Property Value

Whether the wallpaper should be detached. On Android 10 through 16, the base implementation always returns true and ignores changes.

Attributes

Remarks

Property getter documentation:

Gets whether to detach the wallpaper during a window animation.

This member is deprecated. All window animations are running with detached wallpaper.

Java documentation for android.view.animation.Animation.getDetachWallpaper().

Property setter documentation:

On versions where this property takes effect, if detachWallpaper is true, and this is a window animation of a window that has a wallpaper background, then the window will be detached from the wallpaper while it runs. That is, the animation will only be applied to the window, and the wallpaper behind it will remain static.

This member is deprecated. All window animations are running with detached wallpaper.

Java documentation for android.view.animation.Animation.setDetachWallpaper(boolean).

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