TypedArray.GetValue(Int32, TypedValue) 方法

定义

检索 var>索引</var> 处<属性的原始 TypedValue。

[Android.Runtime.Register("getValue", "(ILandroid/util/TypedValue;)Z", "GetGetValue_ILandroid_util_TypedValue_Handler")]
public virtual bool GetValue(int index, Android.Util.TypedValue? outValue);
[<Android.Runtime.Register("getValue", "(ILandroid/util/TypedValue;)Z", "GetGetValue_ILandroid_util_TypedValue_Handler")>]
abstract member GetValue : int * Android.Util.TypedValue -> bool
override this.GetValue : int * Android.Util.TypedValue -> bool

参数

index
Int32

要检索的属性的索引。

outValue
TypedValue

要在其中放置属性数据的 TypedValue 对象。

返回

true 如果检索了该值,则为

属性

例外

如果 TypedArray 已回收,

注解

检索 var>索引</var> 处<属性的原始 TypedValue。

Java文档android.content.res.TypedArray.getValue(int, android.util.TypedValue)

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

适用于