다음을 통해 공유


WindowManager.PropertyCompatAllowMinAspectRatioOverride Field

Definition

Caution

Use 'Android.Views.IWindowManager.PropertyCompatAllowMinAspectRatioOverride'. This class will be removed in a future release.

Application level android.content.pm.PackageManager.Property PackageManager.Property for an app to inform the system that the app should be opted-out from the compatibility override that changes the min aspect ratio.

[Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE", ApiSince=35)]
[System.Obsolete("Use 'Android.Views.IWindowManager.PropertyCompatAllowMinAspectRatioOverride'. This class will be removed in a future release.")]
public const string PropertyCompatAllowMinAspectRatioOverride;
[<Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE", ApiSince=35)>]
[<System.Obsolete("Use 'Android.Views.IWindowManager.PropertyCompatAllowMinAspectRatioOverride'. This class will be removed in a future release.")>]
val mutable PropertyCompatAllowMinAspectRatioOverride : string

Field Value

Attributes

Remarks

Application level android.content.pm.PackageManager.Property PackageManager.Property for an app to inform the system that the app should be opted-out from the compatibility override that changes the min aspect ratio.

When this compat override is enabled the min aspect ratio given in the app's manifest can be overridden by the device manufacturer using their discretion to improve display compatibility unless the app's manifest value is higher. This treatment will also apply if no min aspect ratio value is provided in the manifest. These treatments can apply either in specific cases (e.g. device is in portrait) or each time the app is displayed on screen.

Setting this property to false informs the system that the app must be opted-out from the compatibility treatment even if the device manufacturer has opted the app into the treatment.

Not setting this property at all, or setting this property to true has no effect.

<b>Syntax:</b>

&lt;application&gt;
              &lt;property
                android:name="android.window.PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE"
                android:value="true|false"/&gt;
            &lt;/application&gt;

Java documentation for android.view.WindowManager.PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE.

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