Drawable.InflateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| InflateAsync(Resources, XmlReader, IAttributeSet) | |
| InflateAsync(Resources, XmlReader, IAttributeSet, Resources+Theme) |
在任务中运行 Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme) 。 |
InflateAsync(Resources, XmlReader, IAttributeSet)
public System.Threading.Tasks.Task InflateAsync(Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Util.IAttributeSet attrs);
member this.InflateAsync : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet -> System.Threading.Tasks.Task
参数
用于获取可绘制属性的资源。
- parser
- XmlReader
要膨胀的可绘制对象的 XML 读取器。
- attrs
- IAttributeSet
可绘制元素的属性。
返回
表示调用的任务 Inflate(Resources, XmlReader, IAttributeSet)。
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
InflateAsync(Resources, XmlReader, IAttributeSet, Resources+Theme)
public System.Threading.Tasks.Task InflateAsync(Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Util.IAttributeSet attrs, Android.Content.Res.Resources.Theme? theme);
member this.InflateAsync : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet * Android.Content.Res.Resources.Theme -> System.Threading.Tasks.Task
参数
用于获取可绘制属性的资源。
- parser
- XmlReader
要膨胀的可绘制对象的 XML 读取器。
- attrs
- IAttributeSet
可绘制元素的属性。
- theme
- Resources.Theme
用于解析属性或 null 的主题。
返回
表示调用的任务 Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme)。
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。