语言

PropertyValuesHolder.OfKeyframe 方法

定义

重载

名称 说明
OfKeyframe(Property, Keyframe[])

构造并返回具有指定属性和值集的 PropertyValuesHolder 对象。

OfKeyframe(String, Keyframe[])

构造并返回具有指定属性和值集的 PropertyValuesHolder 对象。

OfKeyframe(Property, Keyframe[])

构造并返回具有指定属性和值集的 PropertyValuesHolder 对象。

[Android.Runtime.Register("ofKeyframe", "(Landroid/util/Property;[Landroid/animation/Keyframe;)Landroid/animation/PropertyValuesHolder;", "")]
public static Android.Animation.PropertyValuesHolder? OfKeyframe(Android.Util.Property? property, params Android.Animation.Keyframe[]? values);
[<Android.Runtime.Register("ofKeyframe", "(Landroid/util/Property;[Landroid/animation/Keyframe;)Landroid/animation/PropertyValuesHolder;", "")>]
static member OfKeyframe : Android.Util.Property * Android.Animation.Keyframe[] -> Android.Animation.PropertyValuesHolder

参数

property
Property

与此值集关联的属性。 不应为 null。

values
Keyframe[]

要进行动画处理的一组值。

返回

指定属性和关键帧的属性值持有者。

特性

注解

Java文档android.animation.PropertyValuesHolder.ofKeyframe(android.util.Property, android.animation.Keyframe)。

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

适用于

OfKeyframe(String, Keyframe[])

构造并返回具有指定属性和值集的 PropertyValuesHolder 对象。

[Android.Runtime.Register("ofKeyframe", "(Ljava/lang/String;[Landroid/animation/Keyframe;)Landroid/animation/PropertyValuesHolder;", "")]
public static Android.Animation.PropertyValuesHolder? OfKeyframe(string? propertyName, params Android.Animation.Keyframe[]? values);
[<Android.Runtime.Register("ofKeyframe", "(Ljava/lang/String;[Landroid/animation/Keyframe;)Landroid/animation/PropertyValuesHolder;", "")>]
static member OfKeyframe : string * Android.Animation.Keyframe[] -> Android.Animation.PropertyValuesHolder

参数

propertyName
String

与此值集关联的属性的名称。 这可以是使用 ObjectAnimator 对象时要使用的实际属性名称,也可以是用于获取动画值的名称,例如,此对象是否与 ValueAnimator 对象一起使用。

values
Keyframe[]

要进行动画处理的一组值。

返回

指定属性名称和关键帧的属性值持有者。

特性

注解

Android 参考。android.animation.PropertyValuesHolder.ofKeyframe

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

适用于