Share via


IWindowManager.PropertyCompatAllowResizeableActivityOverrides Field

Definition

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 overrides that change the resizability of the app.

[Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES", ApiSince=35)]
public const string PropertyCompatAllowResizeableActivityOverrides;
[<Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES", ApiSince=35)>]
val mutable PropertyCompatAllowResizeableActivityOverrides : 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 overrides that change the resizability of the app.

When these compat overrides are enabled they force the packages they are applied to to be resizable/unresizable. If the app is forced to be resizable this won't change whether the app can be put into multi-windowing mode, but allow the app to resize without going into size compatibility mode when the window container resizes, such as display size change or screen rotation.

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_RESIZEABLE_ACTIVITY_OVERRIDES"
                android:value="true|false"/&gt;
            &lt;/application&gt;

Java documentation for android.view.WindowManager.PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES.

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