WindowManager.PropertyCompatAllowMinAspectRatioOverride Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE"
android:value="true|false"/>
</application>
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.