שינוי מברירת המחדל של יצרן המכשיר עם מסך גדול לכל אפליקציה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מערכת 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).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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."]]