다음을 통해 공유


Window.SetWindowAnimations(Int32) Method

Definition

Specify custom animations to use for the window, as per WindowManager.LayoutParams#windowAnimations WindowManager.LayoutParams.windowAnimations.

[Android.Runtime.Register("setWindowAnimations", "(I)V", "GetSetWindowAnimations_IHandler")]
public virtual void SetWindowAnimations (int resId);
[<Android.Runtime.Register("setWindowAnimations", "(I)V", "GetSetWindowAnimations_IHandler")>]
abstract member SetWindowAnimations : int -> unit
override this.SetWindowAnimations : int -> unit

Parameters

resId
Int32
Attributes

Remarks

Specify custom animations to use for the window, as per WindowManager.LayoutParams#windowAnimations WindowManager.LayoutParams.windowAnimations. Providing anything besides 0 here will override the animations the window would normally retrieve from its theme.

Java documentation for android.view.Window.setWindowAnimations(int).

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