ContextThemeWrapper.OnApplyThemeResource(Resources+Theme, Int32, Boolean) ContextThemeWrapper.OnApplyThemeResource(Resources+Theme, Int32, Boolean) Method

Definition

Called by Android.Views.ContextThemeWrapper.setTheme(int) and Android.Views.ContextThemeWrapper.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);
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 Resources.Theme

The Theme object being modified.

resId
Int32 Int32
first
Boolean Boolean

theme

Remarks

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