ContextWrapper.CreateConfigurationContext(Configuration) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回当前上下文的新 Context 对象,但要调整其资源以匹配给定的配置。
[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
参数
- overrideConfiguration
- Configuration
指定要 Configuration 在原始上下文资源的基本配置中修改的值。 如果基本配置发生更改(例如,由于方向更改),此上下文的资源也会更改,但此处已显式重写的值除外。
返回
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。