Substituições por app do fabricante do dispositivo de tela grande
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O Android oferece substituições que mudam o comportamento configurado dos apps. Por exemplo, a substituição FORCE_RESIZE_APP
instrui o sistema a redimensionar o app para se ajustar às dimensões da tela, mesmo que resizeableActivity="false"
esteja definido no manifesto do app.
Os fabricantes de dispositivos aplicam substituições a apps em dispositivos de tela grande selecionados.
As substituições por app têm o objetivo de melhorar a experiência do usuário em dispositivos de tela grande. Os apps podem desativar algumas substituições.
Para mais informações sobre substituições por app, consulte Modo de compatibilidade do dispositivo.
Substituições do fabricante do dispositivo
Os fabricantes de dispositivos aplicam substituições aos apps para melhorar a experiência do usuário em tablets, dobráveis e outros dispositivos de tela grande. Para uma lista completa de substituições, consulte Modo de compatibilidade do dispositivo.
Desativar as substituições
As tags PackageManager.Property
permitem que os apps desativem as substituições do fabricante do dispositivo. O Android 14 introduz as seguintes tags:
PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES
Para desativar as substituições FORCE_RESIZE_APP
e FORCE_NON_RESIZE_APP
, defina a propriedade como "false" no manifesto do app:
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES"
android:value="false"/>
</application>
Otimize seu app para telas grandes:faça com que ele possa ser redimensionado e implemente layouts responsivos/adaptáveis para uma experiência ideal do usuário em telas de todos os tamanhos.
PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE
Para desativar OVERRIDE_MIN_ASPECT_RATIO
, defina a propriedade como "false" no manifesto do app:
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE"
android:value="false"/>
</application>
A propriedade também desativa as seguintes substituições do fabricante do dispositivo:
Otimize seu app para telas grandes:não configure restrições de proporção no seu app. Crie layouts de apps que ofereçam suporte a diferentes tamanhos de tela e ao modo de várias janelas.
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-08-27 UTC.
[null,null,["Última atualização 2025-08-27 UTC."],[],[],null,["Android provides overrides that change the configured behavior of apps. For example, the [`FORCE_RESIZE_APP`](/guide/topics/large-screens/large-screen-compatibility-mode#force_resize_app) override instructs the system to resize the app to fit display dimensions even if [`resizeableActivity=\"false\"`](/guide/topics/manifest/application-element#resizeableActivity) is set in the app manifest.\n\nDevice manufacturers apply overrides to apps on select large screen devices.\n\nPer-app overrides are intended to improve the user experience on large screen devices. Apps can disable some overrides.\n\nFor more information about per-app overrides, see [Device compatibility mode](/guide/practices/device-compatibility-mode).\n| **Note:** To enable your app to provide the best user experience without relying on overrides, follow the [Large screen app quality](/docs/quality-guidelines/large-screen-app-quality) guidelines.\n\nDevice manufacturer overrides\n\nDevice manufacturers apply overrides to apps to improve the user experience on tablets, foldables, and other large screen devices. For a complete list of overrides, see [Device compatibility mode](/guide/practices/device-compatibility-mode#per-app_overrides).\n\nDisable the overrides\n\n[`PackageManager.Property`](/reference/android/content/pm/PackageManager.Property) tags enable apps to disable device manufacturer overrides. Android 14 introduces the following tags:\n\n\u003cbr /\u003e\n\n- **PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES**\n\n To disable the [`FORCE_RESIZE_APP`](/guide/topics/large-screens/large-screen-compatibility-mode#force_resize_app) and [`FORCE_NON_RESIZE_APP`](/guide/topics/large-screens/large-screen-compatibility-mode#force_non_resize_app) overrides, set the property to false in your app manifest: \n\n \u003capplication\u003e\n \u003cproperty\n android:name=\"android.window.PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES\"\n android:value=\"false\"/\u003e\n \u003c/application\u003e\n\n **Optimize your app for large screens:** Make your app resizable and implement responsive/adaptive layouts for an optimal user experience on displays of all sizes.\n\n \u003cbr /\u003e\n\n- **PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE**\n\n To disable [`OVERRIDE_MIN_ASPECT_RATIO`](/guide/topics/large-screens/large-screen-compatibility-mode#override_min_aspect_ratio), set the property to false in your app manifest: \n\n \u003capplication\u003e\n \u003cproperty\n android:name=\"android.window.PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE\"\n android:value=\"false\"/\u003e\n \u003c/application\u003e\n\n The property also disables the following device manufacturer overrides:\n - [`OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY`](/guide/topics/large-screens/large-screen-compatibility-mode#override_min_aspect_ratio_portrait_only): Restricts configurations that force a given minimum aspect ratio for activities with portrait‑only orientation.\n - [`OVERRIDE_MIN_ASPECT_RATIO_MEDIUM`](/guide/topics/large-screens/large-screen-compatibility-mode#override_min_aspect_ratio_medium): Sets the activity's minimum aspect ratio to a medium value (3:2).\n - [`OVERRIDE_MIN_ASPECT_RATIO_LARGE`](/guide/topics/large-screens/large-screen-compatibility-mode#override_min_aspect_ratio_large): Sets the activity's minimum aspect ratio to a large value (16:9).\n - [`OVERRIDE_MIN_ASPECT_RATIO_TO_ALIGN_WITH_SPLIT_SCREEN`](/guide/topics/large-screens/large-screen-compatibility-mode#override_min_aspect_ratio_to_align_with_split_screen): Enables the use of split‑screen aspect ratio. Allows an app to use all the available space in split‑screen mode, avoiding letterboxing.\n - [`OVERRIDE_MIN_ASPECT_RATIO_EXCLUDE_PORTRAIT_FULLSCREEN`](/guide/topics/large-screens/large-screen-compatibility-mode#override_min_aspect_ratio_exclude_portrait_fullscreen): Disables the minimum aspect ratio override in portrait full screen to use all available screen space.\n\n **Optimize your app for large screens:** Don't set aspect ratio restrictions in your app. Create app layouts that support different screen sizes and multi‑window mode."]]