语言

GestureLibraries.FromRawResource(Context, Int32) 方法

定义

创建由原始资源支持的只读手势库。

[Android.Runtime.Register("fromRawResource", "(Landroid/content/Context;I)Landroid/gesture/GestureLibrary;", "")]
public static Android.Gestures.GestureLibrary? FromRawResource(Android.Content.Context? context, int resourceId);
[<Android.Runtime.Register("fromRawResource", "(Landroid/content/Context;I)Landroid/gesture/GestureLibrary;", "")>]
static member FromRawResource : Android.Content.Context * int -> Android.Gestures.GestureLibrary

参数

context
Context

其资源包含笔势数据的上下文。

resourceId
Int32

原始手势数据的资源标识符。

返回

只读资源支持的库。 调用 Load() 以读取资源。 保存此库返回 false。

特性

注解

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

适用于