Переопределения для каждого приложения производителя устройства с большим экраном
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
В Android предусмотрены переопределения, которые изменяют настроенное поведение приложений. Например, переопределение FORCE_RESIZE_APP
предписывает системе изменять размер приложения в соответствии с размерами экрана, даже если в манифесте приложения установлено resizeableActivity="false"
.
Производители устройств применяют переопределения к приложениям на некоторых устройствах с большим экраном.
Переопределения для отдельных приложений предназначены для улучшения пользовательского опыта на устройствах с большим экраном. Приложения могут отключать некоторые переопределения.
Дополнительную информацию о переопределениях для отдельных приложений см. в разделе Режим совместимости устройств .
Изготовитель устройства переопределяет
Производители устройств применяют переопределения к приложениям для улучшения пользовательского опыта на планшетах, складных устройствах и других устройствах с большим экраном. Полный список переопределений см. в разделе «Режим совместимости устройств» .
Отключить переопределения
Теги PackageManager.Property
позволяют приложениям отключать переопределения производителя устройства. В Android 14 представлены следующие теги:
PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES
Чтобы отключить переопределения FORCE_RESIZE_APP
и FORCE_NON_RESIZE_APP
, задайте свойству значение false в манифесте приложения:
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_RESIZEABLE_ACTIVITY_OVERRIDES"
android:value="false"/>
</application>
Оптимизируйте свое приложение для больших экранов: сделайте так, чтобы размер вашего приложения можно было изменять, и реализуйте адаптивные макеты для оптимального взаимодействия с пользователем на дисплеях всех размеров.
PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE
Чтобы отключить OVERRIDE_MIN_ASPECT_RATIO
, задайте для свойства значение false в манифесте приложения:
<application>
<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_MIN_ASPECT_RATIO_OVERRIDE"
android:value="false"/>
</application>
Это свойство также отключает следующие переопределения производителя устройства:
Оптимизируйте приложение для больших экранов: не устанавливайте ограничения по соотношению сторон в приложении. Создавайте макеты приложения, поддерживающие разные размеры экранов и многооконный режим.
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-08-27 UTC.
[null,null,["Последнее обновление: 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."]]