語言

AnimatorInflater.LoadAnimator(Context, Int32) 方法

定義

從資源載入 Animator 物件

[Android.Runtime.Register("loadAnimator", "(Landroid/content/Context;I)Landroid/animation/Animator;", "")]
public static Android.Animation.Animator? LoadAnimator(Android.Content.Context? context, int id);
[<Android.Runtime.Register("loadAnimator", "(Landroid/content/Context;I)Landroid/animation/Animator;", "")>]
static member LoadAnimator : Android.Content.Context * int -> Android.Animation.Animator

參數

context
Context

用於存取資源的應用程式上下文

id
Int32

要載入的動畫資源 ID

傳回

動畫器物件以指定的 ID 來參考

屬性

例外狀況

當動畫無法載入時

備註

從資源載入 Animator 物件

Java 文件 android.animation.AnimatorInflater.loadAnimator(android.content.Context, int)。

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

適用於