Resources.Theme.ResolveAttribute(Int32, TypedValue, Boolean) Metodo

Definizione

Recuperare il valore di un attributo nel tema.

[Android.Runtime.Register("resolveAttribute", "(ILandroid/util/TypedValue;Z)Z", "")]
public bool ResolveAttribute(int resid, Android.Util.TypedValue? outValue, bool resolveRefs);
[<Android.Runtime.Register("resolveAttribute", "(ILandroid/util/TypedValue;Z)Z", "")>]
member this.ResolveAttribute : int * Android.Util.TypedValue * bool -> bool

Parametri

resid
Int32

Identificatore della risorsa dell'attributo del tema desiderato.

outValue
TypedValue

Compilato con il valore finale della risorsa fornito dall'attributo .

resolveRefs
Boolean

Se true, verranno visualizzati i riferimenti alle risorse; se false, <var>outValue</var> può essere un TYPE_REFERENCE. In entrambi i casi, non sarà mai un TYPE_ATTRIBUTE.

Valori restituiti

boolean Restituisce true se l'attributo è stato trovato e <var>outValue</var> è valido, altrimenti false.

Attributi

Commenti

Recuperare il valore di un attributo nel tema. Il contenuto di <var>outValue</var> viene compilato in ultima analisi da Resources#getValue.

per android.content.res.Resources.Theme.resolveAttribute(int, android.util.TypedValue, boolean).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a