ContextThemeWrapper Constructors
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.
Overloads
ContextThemeWrapper() |
Creates a new context wrapper with no theme and no base context. |
ContextThemeWrapper(Context, Resources+Theme) |
Creates a new context wrapper with no theme and no base context. |
ContextThemeWrapper(Context, Int32) |
Creates a new context wrapper with the specified theme. |
ContextThemeWrapper(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ContextThemeWrapper()
Creates a new context wrapper with no theme and no base context.
[Android.Runtime.Register(".ctor", "()V", "")]
public ContextThemeWrapper ();
- Attributes
Remarks
Creates a new context wrapper with no theme and no base context. <p class="note"> <strong>Note:</strong> A base context <strong>must</strong> be attached using #attachBaseContext(Context)
before calling any other method on the newly constructed context wrapper.
Java documentation for android.view.ContextThemeWrapper.ContextThemeWrapper()
.
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
ContextThemeWrapper(Context, Resources+Theme)
Creates a new context wrapper with no theme and no base context.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/content/res/Resources$Theme;)V", "", ApiSince=23)]
public ContextThemeWrapper (Android.Content.Context? base, Android.Content.Res.Resources.Theme? theme);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/content/res/Resources$Theme;)V", "", ApiSince=23)>]
new Android.Views.ContextThemeWrapper : Android.Content.Context * Android.Content.Res.Resources.Theme -> Android.Views.ContextThemeWrapper
Parameters
- base
- Context
- theme
- Resources.Theme
- Attributes
Remarks
Java documentation for android.view.ContextThemeWrapper.ContextThemeWrapper()
.
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
ContextThemeWrapper(Context, Int32)
Creates a new context wrapper with the specified theme.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ContextThemeWrapper (Android.Content.Context? base, int themeResId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Views.ContextThemeWrapper : Android.Content.Context * int -> Android.Views.ContextThemeWrapper
Parameters
- base
- Context
the base context
- themeResId
- Int32
the resource ID of the theme to be applied on top of the base context's theme
- Attributes
Remarks
Creates a new context wrapper with the specified theme.
The specified theme will be applied on top of the base context's theme. Any attributes not explicitly defined in the theme identified by <var>themeResId</var> will retain their original values.
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
ContextThemeWrapper(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ContextThemeWrapper (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.ContextThemeWrapper : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.ContextThemeWrapper
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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.