Megosztás a következőn keresztül:


ContextThemeWrapper.ApplyOverrideConfiguration(Configuration) Method

Definition

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.

[Android.Runtime.Register("applyOverrideConfiguration", "(Landroid/content/res/Configuration;)V", "GetApplyOverrideConfiguration_Landroid_content_res_Configuration_Handler")]
public virtual void ApplyOverrideConfiguration (Android.Content.Res.Configuration? overrideConfiguration);
[<Android.Runtime.Register("applyOverrideConfiguration", "(Landroid/content/res/Configuration;)V", "GetApplyOverrideConfiguration_Landroid_content_res_Configuration_Handler")>]
abstract member ApplyOverrideConfiguration : Android.Content.Res.Configuration -> unit
override this.ApplyOverrideConfiguration : Android.Content.Res.Configuration -> unit

Parameters

overrideConfiguration
Configuration
Attributes

Remarks

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. See Context#createConfigurationContext(Configuration) for more information.

This method can only be called once, and must be called before any calls to #getResources() or #getAssets() are made.

Java documentation for android.view.ContextThemeWrapper.applyOverrideConfiguration(android.content.res.Configuration).

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