语言

RemoteViews.Apply(Context, ViewGroup) 方法

定义

膨胀此对象表示的视图层次结构,并应用所有操作。

[Android.Runtime.Register("apply", "(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;", "GetApply_Landroid_content_Context_Landroid_view_ViewGroup_Handler")]
public virtual Android.Views.View? Apply(Android.Content.Context? context, Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("apply", "(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;", "GetApply_Landroid_content_Context_Landroid_view_ViewGroup_Handler")>]
abstract member Apply : Android.Content.Context * Android.Views.ViewGroup -> Android.Views.View
override this.Apply : Android.Content.Context * Android.Views.ViewGroup -> Android.Views.View

参数

context
Context

要使用的默认上下文

parent
ViewGroup

生成的视图层次结构将附加到的父级。 此方法 不 附加层次结构。 在适当的时候,调用方应执行此操作。

返回

膨胀视图层次结构

特性

注解

Java文档android.widget.RemoteViews.apply(android.content.Context, android.view.ViewGroup)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于