Freigeben über


Resources.ParseBundleExtra(String, IAttributeSet, Bundle) Method

Definition

Parse a name/value pair out of an XML tag holding that data.

[Android.Runtime.Register("parseBundleExtra", "(Ljava/lang/String;Landroid/util/AttributeSet;Landroid/os/Bundle;)V", "GetParseBundleExtra_Ljava_lang_String_Landroid_util_AttributeSet_Landroid_os_Bundle_Handler")]
public virtual void ParseBundleExtra (string? tagName, Android.Util.IAttributeSet? attrs, Android.OS.Bundle? outBundle);
[<Android.Runtime.Register("parseBundleExtra", "(Ljava/lang/String;Landroid/util/AttributeSet;Landroid/os/Bundle;)V", "GetParseBundleExtra_Ljava_lang_String_Landroid_util_AttributeSet_Landroid_os_Bundle_Handler")>]
abstract member ParseBundleExtra : string * Android.Util.IAttributeSet * Android.OS.Bundle -> unit
override this.ParseBundleExtra : string * Android.Util.IAttributeSet * Android.OS.Bundle -> unit

Parameters

tagName
String

The name of the tag these attributes come from; this is only used for reporting error messages.

attrs
IAttributeSet

The attributes from which to retrieve the name/value pair.

outBundle
Bundle

The Bundle in which to place the parsed value.

Attributes

Exceptions

If the attributes are not valid.

Remarks

Parse a name/value pair out of an XML tag holding that data. The AttributeSet must be holding the data defined by android.R.styleable#Extra. The following value types are supported: <ul> <li> TypedValue#TYPE_STRING: Bundle#putCharSequence Bundle.putCharSequence()<li> TypedValue#TYPE_INT_BOOLEAN: Bundle#putCharSequence Bundle.putBoolean()<li> TypedValue#TYPE_FIRST_INT-TypedValue#TYPE_LAST_INT: Bundle#putCharSequence Bundle.putBoolean()<li> TypedValue#TYPE_FLOAT: Bundle#putCharSequence Bundle.putFloat()</ul>

Java documentation for android.content.res.Resources.parseBundleExtra(java.lang.String, android.util.AttributeSet, android.os.Bundle).

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