语言

ContextThemeWrapper.OnApplyThemeResource 方法

定义

调用者 #setTheme 并将 #getTheme 主题资源应用于当前 Theme 对象。

[Android.Runtime.Register("onApplyThemeResource", "(Landroid/content/res/Resources$Theme;IZ)V", "GetOnApplyThemeResource_Landroid_content_res_Resources_Theme_IZHandler")]
protected virtual void OnApplyThemeResource(Android.Content.Res.Resources.Theme? theme, int resId, bool first);
[<Android.Runtime.Register("onApplyThemeResource", "(Landroid/content/res/Resources$Theme;IZ)V", "GetOnApplyThemeResource_Landroid_content_res_Resources_Theme_IZHandler")>]
abstract member OnApplyThemeResource : Android.Content.Res.Resources.Theme * int * bool -> unit
override this.OnApplyThemeResource : Android.Content.Res.Resources.Theme * int * bool -> unit

参数

theme
Resources.Theme

正在修改的主题

resId
Int32

应用于主题的样式资源

first
Boolean

true如果这是第一次将样式应用于主题,则为

特性

注解

Java文档android.view.ContextThemeWrapper.onApplyThemeResource(android.content.res.Resources.Theme, int, boolean)。

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

适用于