Window.TransitionBackgroundFadeDuration Property

Definition

Returns the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition. -or- Sets the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition.

public virtual long TransitionBackgroundFadeDuration { [Android.Runtime.Register("getTransitionBackgroundFadeDuration", "()J", "GetGetTransitionBackgroundFadeDurationHandler")] get; [Android.Runtime.Register("setTransitionBackgroundFadeDuration", "(J)V", "GetSetTransitionBackgroundFadeDuration_JHandler")] set; }
[<get: Android.Runtime.Register("getTransitionBackgroundFadeDuration", "()J", "GetGetTransitionBackgroundFadeDurationHandler")>]
[<set: Android.Runtime.Register("setTransitionBackgroundFadeDuration", "(J)V", "GetSetTransitionBackgroundFadeDuration_JHandler")>]
member this.TransitionBackgroundFadeDuration : int64 with get, set

Property Value

The duration of the window background fade to opaque during enter transition.

Attributes

Remarks

Property getter documentation:

Returns the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition.

When executing the enter transition, the background starts transparent and fades in. This requires #FEATURE_ACTIVITY_TRANSITIONS. The default is 300 milliseconds.

Java documentation for android.view.Window.getTransitionBackgroundFadeDuration().

Property setter documentation:

Sets the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition.

When executing the enter transition, the background starts transparent and fades in. This requires #FEATURE_ACTIVITY_TRANSITIONS. The default is 300 milliseconds.

Java documentation for android.view.Window.setTransitionBackgroundFadeDuration(long).

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