Share via


ContextWrapper.CreateConfigurationContext(Configuration) Method

Definition

Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.

[Android.Runtime.Register("createConfigurationContext", "(Landroid/content/res/Configuration;)Landroid/content/Context;", "GetCreateConfigurationContext_Landroid_content_res_Configuration_Handler")]
public override Android.Content.Context? CreateConfigurationContext (Android.Content.Res.Configuration? overrideConfiguration);
[<Android.Runtime.Register("createConfigurationContext", "(Landroid/content/res/Configuration;)Landroid/content/Context;", "GetCreateConfigurationContext_Landroid_content_res_Configuration_Handler")>]
override this.CreateConfigurationContext : Android.Content.Res.Configuration -> Android.Content.Context

Parameters

overrideConfiguration
Configuration

A Configuration specifying what values to modify in the base Configuration of the original Context's resources. If the base configuration changes (such as due to an orientation change), the resources of this context will also change except for those that have been explicitly overridden with a value here.

Returns

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.

Applies to