Partager via


ContextThemeWrapper.SetTheme(Resources+Theme) Method

Definition

Set the configure the current theme.

[Android.Runtime.Register("setTheme", "(Landroid/content/res/Resources$Theme;)V", "GetSetTheme_Landroid_content_res_Resources_Theme_Handler", ApiSince=29)]
public virtual void SetTheme (Android.Content.Res.Resources.Theme? theme);
[<Android.Runtime.Register("setTheme", "(Landroid/content/res/Resources$Theme;)V", "GetSetTheme_Landroid_content_res_Resources_Theme_Handler", ApiSince=29)>]
override this.SetTheme : Android.Content.Res.Resources.Theme -> unit

Parameters

theme
Resources.Theme

Theme to consume in the wrapper, a value of null resets the theme to the default

Attributes

Remarks

Java documentation for android.view.ContextThemeWrapper.setTheme(android.content.res.Theme).

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