次の方法で共有


TypedArray.GetValue(Int32, TypedValue) Method

Definition

Retrieve the raw TypedValue for the attribute at <var>index</var>.

[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

Parameters

index
Int32

Index of attribute to retrieve.

outValue
TypedValue

TypedValue object in which to place the attribute's data.

Returns

true if the value was retrieved and not

Attributes

Exceptions

if the TypedArray has already been recycled.

Remarks

Retrieve the raw TypedValue for the attribute at <var>index</var>.

Java documentation for android.content.res.TypedArray.getValue(int, android.util.TypedValue).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to