Drawable.Inflate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Inflate(Resources, XmlReader, IAttributeSet) |
從 XML 資源中膨脹這個可繪製物件。 |
| Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme) |
從 XML 資源中膨脹這個可繪製物件。 |
Inflate(Resources, XmlReader, IAttributeSet)
從 XML 資源中膨脹這個可繪製物件。
[Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Handler")]
public virtual void Inflate(Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Util.IAttributeSet attrs);
[<Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Handler")>]
abstract member Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet -> unit
override this.Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet -> unit
參數
- parser
- XmlReader
- attrs
- IAttributeSet
- 屬性
例外狀況
備註
從 XML 資源中膨脹這個可繪製物件。 不套用主題。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
另請參閱
- <xref:Android.Graphics.Drawables.Drawable.Inflate(Android.Content.Res.Resources%2c+System.Xml.XmlReader%2c+System.Xml.XmlReader%2c+System.Xml.XmlReader)>
適用於
Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme)
從 XML 資源中膨脹這個可繪製物件。
[Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Landroid_content_res_Resources_Theme_Handler")]
public virtual void Inflate(Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Util.IAttributeSet attrs, Android.Content.Res.Resources.Theme? theme);
[<Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Landroid_content_res_Resources_Theme_Handler")>]
abstract member Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet * Android.Content.Res.Resources.Theme -> unit
override this.Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet * Android.Content.Res.Resources.Theme -> unit
參數
用於解析屬性值的資源
- parser
- XmlReader
XML 解析器,從中膨脹此可繪製圖
- attrs
- IAttributeSet
屬性值的基礎集合
- theme
- Resources.Theme
套用主題,可能為空
- 屬性
例外狀況
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。