Resources.ParseBundleExtra(String, IAttributeSet, Bundle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從儲存該資料的 XML 標籤中解析出一對名稱/值對。
[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
參數
- tagName
- String
這些屬性所來自的標籤名稱;這僅用於回報錯誤訊息。
- attrs
- IAttributeSet
從中取得名稱/值對的屬性。
- outBundle
- Bundle
將解析後值放入的束。
- 屬性
例外狀況
如果屬性不成立,
備註
從儲存該資料的 XML 標籤中解析出一對名稱/值對。 AttributeSet 必須持有由 定義的資料 android.R.styleable#Extra。 支援以下值類型:<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: li: Bundle#putCharSequence Bundle.putBoolean()<>TypedValue#TYPE_FLOAT/ulBundle#putCharSequence Bundle.putFloat()<>
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。