TypedArray的getResourceId方法 [英] getResourceId method of TypedArray

查看:105
本文介绍了TypedArray的getResourceId方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读有关 getResourceId()方法.它说:

I am reading docs about getResourceId() method. It says that:

检索索引处属性的资源标识符.笔记当整个TypedArray对象被解析时,该属性资源被解析被检索.结果,此函数将返回资源找到的最终资源值的标识符,不一定属性指定的原始资源.

Retrieves the resource identifier for the attribute at index. Note that attribute resource as resolved when the overall TypedArray object is retrieved. As a result, this function will return the resource identifier of the final resource value that was found, not necessarily the original resource that was specified by the attribute.

所以

  • 第一段很清楚:

检索索引处属性的资源标识符.

Retrieves the resource identifier for the attribute at index.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆