语言

Resources.GetTextArray(Int32) 方法

定义

返回与特定资源 ID 关联的样式文本数组。

public string[] GetTextArray(int id);
member this.GetTextArray : int -> string[]

参数

id
Int32

所需的资源标识符,由 aapt 工具生成。 此整数对包、类型和资源条目进行编码。 值 0 是无效的标识符。

返回

String[]

与资源关联的样式文本数组。

注解

返回与特定资源 ID 关联的样式文本数组。

Java文档android.content.res.Resources.getTextArray(int)。

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

适用于