ContextThemeWrapper.OnApplyThemeResource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.