次の方法で共有


View.OnConfigurationChanged(Configuration) Method

Definition

Called when the current configuration of the resources being used by the application have changed.

[Android.Runtime.Register("onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "GetOnConfigurationChanged_Landroid_content_res_Configuration_Handler")]
protected virtual void OnConfigurationChanged (Android.Content.Res.Configuration? newConfig);
[<Android.Runtime.Register("onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "GetOnConfigurationChanged_Landroid_content_res_Configuration_Handler")>]
abstract member OnConfigurationChanged : Android.Content.Res.Configuration -> unit
override this.OnConfigurationChanged : Android.Content.Res.Configuration -> unit

Parameters

newConfig
Configuration

The new resource configuration.

Attributes

Remarks

Called when the current configuration of the resources being used by the application have changed. You can use this to decide when to reload resources that can changed based on orientation and other configuration characteristics. You only need to use this if you are not relying on the normal android.app.Activity mechanism of recreating the activity instance upon a configuration change.

Java documentation for android.view.View.onConfigurationChanged(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