ContextThemeWrapper.OnApplyThemeResource Method

Definition

Called by #setTheme and #getTheme to apply a theme resource to the current Theme object.

[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

Parameters

theme
Resources.Theme

the theme being modified

resId
Int32

the style resource being applied to <var>theme</var>

first
Boolean

true if this is the first time a style is being applied to <var>theme</var>

Attributes

Remarks

Java documentation for android.view.ContextThemeWrapper.onApplyThemeResource(android.content.res.Theme, int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to