语言

Window.SetWindowAnimations(Int32) 方法

定义

根据 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

参数

resId
Int32

用于 res ID 的 System.Int32 值。

特性

注解

根据 WindowManager.LayoutParams#windowAnimations WindowManager.LayoutParams.windowAnimations以下情况指定要用于窗口的自定义动画。 在此处提供除 0 以外的任何内容将覆盖窗口通常从其主题中检索的动画。

Java文档android.view.Window.setWindowAnimations(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于