Chế độ ghi đè cho mỗi ứng dụng của nhà sản xuất thiết bị có màn hình lớn
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Android cung cấp các chế độ ghi đè có thể thay đổi hành vi được định cấu hình của các ứng dụng. Ví dụ: chế độ ghi đè FORCE_RESIZE_APP sẽ hướng dẫn hệ thống đổi kích thước ứng dụng cho vừa với kích thước màn hình ngay cả khi resizeableActivity="false" được thiết lập trong tệp kê khai ứng dụng.
Nhà sản xuất thiết bị áp dụng chế độ ghi đè cho các ứng dụng trên một số thiết bị có màn hình lớn.
Chế độ ghi đè cho mỗi ứng dụng được thiết kế để cải thiện trải nghiệm người dùng trên các thiết bị có màn hình lớn. Ứng dụng có thể tắt một số chế độ ghi đè.
Nhà sản xuất thiết bị áp dụng chế độ ghi đè cho các ứng dụng để cải thiện trải nghiệm người dùng trên máy tính bảng, thiết bị có thể gập lại và các thiết bị có màn hình lớn khác. Để xem danh sách đầy đủ các chế độ ghi đè, hãy xem bài viết Chế độ tương thích với thiết bị.
Tắt các chế độ ghi đè
Thẻ PackageManager.Property cho phép ứng dụng tắt chế độ ghi đè của nhà sản xuất thiết bị. Android 14 giới thiệu các thẻ sau:
Tối ưu hoá ứng dụng cho màn hình lớn: Cho phép ứng dụng của bạn thay đổi kích thước và triển khai bố cục đáp ứng/thích ứng để mang lại trải nghiệm tối ưu cho người dùng trên màn hình thuộc mọi kích thước.
Tối ưu hoá ứng dụng cho màn hình lớn: Đừng đặt các quy tắc hạn chế tỷ lệ khung hình trong ứng dụng. Hãy tạo bố cục ứng dụng hỗ trợ nhiều kích thước màn hình và chế độ nhiều cửa sổ.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-08-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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."]]