Android.Views.ContextThemeWrapper.OnApplyThemeResource Method
Called by ContextThemeWrapper.setTheme(int) and ContextThemeWrapper.getTheme() to apply a theme resource to the current Theme object.

Syntax

[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)

Parameters

theme
The Theme object being modified.
resid
The theme style resource being applied to theme.
first
Set to true if this is the first time a style is being applied to theme.

Remarks

Called by ContextThemeWrapper.setTheme(int) and ContextThemeWrapper.getTheme() to apply a theme resource to the current Theme object. Can override to change the default (simple) behavior. This method will not be called in multiple threads simultaneously.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1