다음을 통해 공유


Configuration Constructors

Definition

Overloads

Configuration()

Construct an invalid Configuration.

Configuration(Configuration)

Makes a deep copy suitable for modification.

Configuration()

Construct an invalid Configuration.

[Android.Runtime.Register(".ctor", "()V", "")]
public Configuration ();
Attributes

Remarks

Construct an invalid Configuration. This state is only suitable for constructing a Configuration delta that will be applied to some valid Configuration object. In order to create a valid standalone Configuration, you must call #setToDefaults.

Example:

Configuration validConfig = new Configuration();
                validConfig.setToDefaults();

                Configuration deltaOnlyConfig = new Configuration();
                deltaOnlyConfig.orientation = Configuration.ORIENTATION_LANDSCAPE;

                validConfig.updateFrom(deltaOnlyConfig);

Java documentation for android.content.res.Configuration.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

Configuration(Configuration)

Makes a deep copy suitable for modification.

[Android.Runtime.Register(".ctor", "(Landroid/content/res/Configuration;)V", "")]
public Configuration (Android.Content.Res.Configuration? o);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/Configuration;)V", "")>]
new Android.Content.Res.Configuration : Android.Content.Res.Configuration -> Android.Content.Res.Configuration

Parameters

Attributes

Remarks

Makes a deep copy suitable for modification.

Java documentation for android.content.res.Configuration.Configuration(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