Android Guides | Samples

Android.Views.ContextThemeWrapper Class

A ContextWrapper that allows you to modify the theme from what is in the wrapped context.

See Also: ContextThemeWrapper

Syntax

[Android.Runtime.Register("android/view/ContextThemeWrapper", DoNotGenerateAcw=true)]
public class ContextThemeWrapper : ContextWrapper

Remarks

A ContextWrapper that allows you to modify the theme from what is in the wrapped context.

[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

The members of Android.Views.ContextThemeWrapper are listed below.

See Also: ContextWrapper

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

ApplyOverrideConfiguration(Configuration)
Call to set an "override configuration" on this context -- this is a configuration that replies one or more values of the standard configuration that is applied to the context.

Protected Methods

OnApplyThemeResource(Resources+Theme, Int32, Boolean)
Called by ContextThemeWrapper.setTheme(int) and ContextThemeWrapper.getTheme() to apply a theme resource to the current Theme object.