View.OnConfigurationChanged(Configuration) 方法

定義

當應用程式所使用的資源目前組態變更時呼叫。

[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

參數

newConfig
Configuration

新的資源組態。

屬性

備註

當應用程式所使用的資源目前組態變更時呼叫。 您可以使用此選項來決定何時重載可以根據方向和其他組態特性變更的資源。 如果您不依賴在組態變更時重新建立活動實例的一般 android.app.Activity 機制,您只需要使用此方式。

android.view.View.onConfigurationChanged(android.content.res.Configuration) JAVA 檔。

此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據中所述的詞彙使用。

適用於