Context.CreateConfigurationContext(Configuration) Context.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", ApiSince=17)]
public abstract Android.Content.Context CreateConfigurationContext (Android.Content.Res.Configuration overrideConfiguration);
abstract member CreateConfigurationContext : Android.Content.Res.Configuration -> Android.Content.Context

Parameters

overrideConfiguration
Configuration 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

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