语言

AnimationSet 构造函数

定义

重载

名称 说明
AnimationSet(Boolean)

从代码生成 AnimationSet 时要使用的构造函数

AnimationSet(Context, IAttributeSet)

从资源加载 AnimationSet 时使用的构造函数。

AnimationSet(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

AnimationSet(Boolean)

从代码生成 AnimationSet 时要使用的构造函数

[Android.Runtime.Register(".ctor", "(Z)V", "")]
public AnimationSet(bool shareInterpolator);
[<Android.Runtime.Register(".ctor", "(Z)V", "")>]
new Android.Views.Animations.AnimationSet : bool -> Android.Views.Animations.AnimationSet

参数

shareInterpolator
Boolean

如果此集中的所有动画都应使用与此 AnimationSet 关联的内插器,则传递 true。 如果每个动画应使用自己的内插器,则传递 false。

特性

注解

从代码生成 AnimationSet 时要使用的构造函数

Java文档android.view.animation.AnimationSet.AnimationSet(boolean)。

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

适用于

AnimationSet(Context, IAttributeSet)

从资源加载 AnimationSet 时使用的构造函数。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public AnimationSet(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.Animations.AnimationSet : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.Animations.AnimationSet

参数

context
Context

要使用的应用程序上下文

attrs
IAttributeSet

从中读取值的属性集

特性

注解

从资源加载 AnimationSet 时使用的构造函数。

Java文档android.view.animation.AnimationSet.AnimationSet(android.content.Context, android.util.AttributeSet)。

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

适用于

AnimationSet(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected AnimationSet(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Animations.AnimationSet : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Animations.AnimationSet

参数

javaReference
IntPtr

nativeint

IntPtr一个包含 Java 本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于