AnimationUtils.LoadLayoutAnimation(Context, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
LayoutAnimationController
从资源加载对象
[Android.Runtime.Register("loadLayoutAnimation", "(Landroid/content/Context;I)Landroid/view/animation/LayoutAnimationController;", "")]
public static Android.Views.Animations.LayoutAnimationController? LoadLayoutAnimation (Android.Content.Context? context, int id);
[<Android.Runtime.Register("loadLayoutAnimation", "(Landroid/content/Context;I)Landroid/view/animation/LayoutAnimationController;", "")>]
static member LoadLayoutAnimation : Android.Content.Context * int -> Android.Views.Animations.LayoutAnimationController
参数
- context
- Context
用于访问资源的应用程序上下文
- id
- Int32
要加载的动画的资源 ID
返回
由指定 ID 引用的动画控制器对象
- 属性
例外
无法加载布局动画控制器时
注解
LayoutAnimationController
从资源加载对象
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。