語言

ViewPropertyAnimator.SetInterpolator(ITimeInterpolator) 方法

定義

為底層動畫器設定插值器,該動畫器負責執行所請求屬性的動畫。

[Android.Runtime.Register("setInterpolator", "(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;", "GetSetInterpolator_Landroid_animation_TimeInterpolator_Handler")]
public virtual Android.Views.ViewPropertyAnimator SetInterpolator(Android.Animation.ITimeInterpolator? interpolator);
[<Android.Runtime.Register("setInterpolator", "(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;", "GetSetInterpolator_Landroid_animation_TimeInterpolator_Handler")>]
abstract member SetInterpolator : Android.Animation.ITimeInterpolator -> Android.Views.ViewPropertyAnimator
override this.SetInterpolator : Android.Animation.ITimeInterpolator -> Android.Views.ViewPropertyAnimator

參數

interpolator
ITimeInterpolator

時間插值器用於後續的屬性動畫。 值 將 null 導致線性插值。

傳回

這個物件允許對該類別中方法的呼叫串接。

屬性

備註

為底層動畫器設定插值器,該動畫器負責執行所請求屬性的動畫。 預設情況下,動畫師會使用 ValueAnimator 的預設插值器。 呼叫此方法會使宣告的物件被改為使用。

Java 文件 android.view.ViewPropertyAnimator.setInterpolator(android.animation.TimeInterpolator)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於