TypedArray クラス

定義

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

[Android.Runtime.Register("android/content/res/TypedArray", DoNotGenerateAcw=true)]
public class TypedArray : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IAutoCloseable
[<Android.Runtime.Register("android/content/res/TypedArray", DoNotGenerateAcw=true)>]
type TypedArray = class
    inherit Object
    interface IAutoCloseable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
継承
TypedArray
属性
実装

注釈

または Resources#obtainAttributesで取得されたResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int)値の配列のコンテナー。 完了したら必ず を呼び出 #recycle してください。

この構造体から値を取得するために使用されるインデックスは、obtainStyledAttributes に指定された属性の位置に対応します。

android.content.res.TypedArrayJava ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

コンストラクター

TypedArray(IntPtr, JniHandleOwnership)

JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

プロパティ

ChangingConfigurations

この型指定された配列の値が変更される可能性がある構成パラメーターのマスクを返します。

Class

この Objectのランタイム クラスを返します。

(継承元 Object)
Handle

基になる Android インスタンスへのハンドル。

(継承元 Object)
IndexCount

実際にデータを持つ配列内のインデックスの数を返します。

JniIdentityHashCode

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
JniPeerMembers

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

PeerReference

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
PositionDescription

エラー メッセージの出力に適したパーサーの状態に関するメッセージを返します。

Resources

この配列が読み込まれた Resources オブジェクトを返します。

ThresholdClass

この API は Mono for Android インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

ThresholdType

この API は Mono for Android インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

メソッド

Clone()

このオブジェクトのコピーを作成して返します。

(継承元 Object)
Close()

TypedArray をリサイクルして、後の呼び出し元で再利用します。

Dispose()

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
Dispose(Boolean)

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
Equals(Object)

他のオブジェクトがこのオブジェクトと "等しい" かどうかを示します。

(継承元 Object)
GetBoolean(Int32, Boolean)

var>index</var> にある<属性のブール値を取得します。

GetColor(Int32, Int32)

var>index</var> にある<属性の色の値を取得します。

GetColorStateList(Int32)

var>index</var> にある<属性の ColorStateList を取得します。

GetDimension(Int32, Single)

var>index</var> で次元単位属性を<取得します。

GetDimensionPixelOffset(Int32, Int32)

生ピクセル単位のオフセットとして使用するために、var>index</var> で次元単位属性<を取得します。

GetDimensionPixelSize(Int32, Int32)

生ピクセル単位のサイズとして使用するために、var>index</var> で次元単位属性<を取得します。

GetDrawable(Int32)

var>index</var> にある 属性<の Drawable を取得します。

GetFloat(Int32, Single)

var>index</var> の<属性の float 値を取得します。

GetFont(Int32)

var>index</var> にある <属性の Typeface を取得します。

GetFraction(Int32, Int32, Int32, Single)

var index/var にある小数部の単位属性を<取得します>。<>

GetHashCode()

オブジェクトのハッシュ コード値を返します。

(継承元 Object)
GetIndex(Int32)

データを含む配列内のインデックスを返します。

GetInt(Int32, Int32)

var>index</var> の<属性の整数値を取得します。

GetInteger(Int32, Int32)

var>index</var> の<属性の整数値を取得します。

GetLayoutDimension(Int32, Int32)

のlayout_width属性とlayout_height属性を取得android.view.ViewGroupするための 特別な バージョン#getDimensionPixelSize

GetLayoutDimension(Int32, String)

のlayout_width属性とlayout_height属性を取得android.view.ViewGroupするための 特別な バージョン#getDimensionPixelSize

GetNonResourceString(Int32)

属性の文字列値を var>index</var> で<取得しますが、その文字列が XML ファイル内のイミディエイト値から取得される場合にのみ取得します。

GetResourceId(Int32, Int32)

var>index</var> にある<属性のリソース識別子を取得します。

GetSourceResourceId(Int32, Int32)

指定した属性が解決されたスタイルまたはレイアウトのリソース ID を返します。それ以外の場合は defValue を返します。

GetString(Int32)

var index/var の属性<の文字列値を取得します>。<>

GetText(Int32)

var>index</var> にある属性<のスタイル付き文字列値を取得します。

GetTextArray(Int32)

var>index</var> の属性<の CharSequence[] を取得します。

GetTextArrayFormatted(Int32)

var>index</var> の属性<の CharSequence[] を取得します。

GetTextFormatted(Int32)

var>index</var> にある属性<のスタイル付き文字列値を取得します。

GetType(Int32)

指定したインデックス位置にある属性の型を返します。

GetValue(Int32, TypedValue)

var>index</var> にある属性<の生の TypedValue を取得します。

HasValue(Int32)

var>index</var> に<属性があるかどうかを判断します。

HasValueOrEmpty(Int32)

var>index</var> に<属性があるかどうかを判断します。属性が明示的に に@empty設定されている場合は を返しfalse、属性が未定義の場合にのみ を返trueします。

JavaFinalize()

オブジェクトへの参照がなくなったとガベージ コレクションが判断したときに、オブジェクトのガベージ コレクターによって呼び出されます。

(継承元 Object)
Length()

この配列内の値の数を返します。

Notify()

このオブジェクトのモニターで待機している 1 つのスレッドを起動します。

(継承元 Object)
NotifyAll()

このオブジェクトのモニターで待機しているすべてのスレッドを起動します。

(継承元 Object)
PeekValue(Int32)

var>index</var> の<属性の生の TypedValue を取得し、そのデータを保持する一時オブジェクトを返します。

Recycle()

TypedArray をリサイクルして、後の呼び出し元で再利用します。

SetHandle(IntPtr, JniHandleOwnership)

Handle プロパティを設定します。

(継承元 Object)
ToArray<T>()

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
ToString()

オブジェクトの文字列形式を返します。

(継承元 Object)
UnregisterFromRuntime()

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
Wait()

現在のスレッドが起動するまで待機します。通常<は、通知</em> または>< em 中断</em によって待機します>。>

(継承元 Object)
Wait(Int64)

現在のスレッドが起動するまで待機します。通常<は、通知></em> または <>em 中断</em>、または特定のリアルタイムが経過するまで待機します。

(継承元 Object)
Wait(Int64, Int32)

現在のスレッドが起動するまで待機します。通常<は、通知></em> または <>em 中断</em>、または特定のリアルタイムが経過するまで待機します。

(継承元 Object)

明示的なインターフェイスの実装

IJavaPeerable.Disposed()

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
IJavaPeerable.DisposeUnlessReferenced()

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
IJavaPeerable.Finalized()

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
IJavaPeerable.JniManagedPeerState

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

(継承元 Object)

拡張メソッド

JavaCast<TResult>(IJavaObject)

Android ランタイムチェック型変換を実行します。

JavaCast<TResult>(IJavaObject)

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

GetJniTypeName(IJavaPeerable)

で取得された値の配列のコンテナーResources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) または Resources#obtainAttributes

適用対象