- সিনট্যাক্স:
<compatible-screens> <screen android:screenSize=["small" | "normal" | "large" | "xlarge"] android:screenDensity=["ldpi" | "mdpi" | "hdpi" | "xhdpi" | "280" | "360" | "420" | "480" | "560" ] /> ... </compatible-screens>
- এর মধ্যে রয়েছে:
-
<manifest>
- বর্ণনা:
- প্রতিটি স্ক্রীন কনফিগারেশন নির্দিষ্ট করে যার সাথে অ্যাপ্লিকেশনটি সামঞ্জস্যপূর্ণ। ম্যানিফেস্টে
<compatible-screens>
> উপাদানটির শুধুমাত্র একটি উদাহরণ অনুমোদিত, তবে এতে একাধিক<screen>
উপাদান থাকতে পারে। প্রতিটি<screen>
উপাদান একটি নির্দিষ্ট পর্দার আকার-ঘনত্ব সমন্বয় নির্দিষ্ট করে যার সাথে অ্যাপ্লিকেশনটি সামঞ্জস্যপূর্ণ।অ্যান্ড্রয়েড সিস্টেম কোনো সময়ে
<compatible-screens>
> ম্যানিফেস্ট উপাদানটি পড়ে না । এই উপাদানটি শুধুমাত্র তথ্যগত এবং নির্দিষ্ট স্ক্রীন কনফিগারেশনের সাথে অ্যাপ্লিকেশনের সামঞ্জস্যতা আরও ভালভাবে বুঝতে এবং ব্যবহারকারীদের জন্য ফিল্টারিং সক্ষম করতে Google Play এর মতো বাহ্যিক পরিষেবাগুলি দ্বারা ব্যবহৃত হয়৷যে কোনো স্ক্রিন কনফিগারেশন যা এই উপাদানটিতে ঘোষণা করা হয়নি তা হল একটি স্ক্রীন যার সাথে অ্যাপ্লিকেশনটি সামঞ্জস্যপূর্ণ নয় ৷ বাহ্যিক পরিষেবাগুলি, যেমন Google Play, এই জাতীয় স্ক্রিন সহ ডিভাইসগুলিতে অ্যাপ্লিকেশনটি সরবরাহ করে না৷
সতর্কতা: সাধারণত, আপনি এই ম্যানিফেস্ট উপাদানটি ব্যবহার করবেন না । এই উপাদানটি ব্যবহার করে আপনার অ্যাপ্লিকেশনের জন্য সম্ভাব্য ব্যবহারকারীর ভিত্তি নাটকীয়ভাবে হ্রাস করতে পারে যদি ব্যবহারকারীদের কাছে স্ক্রিন কনফিগারেশন সহ এমন একটি ডিভাইস থাকে যা আপনি তালিকাভুক্ত করেন না। এটি শুধুমাত্র একটি শেষ অবলম্বন হিসাবে ব্যবহার করুন, যখন অ্যাপ্লিকেশনটি নির্দিষ্ট স্ক্রিন কনফিগারেশনের সাথে একেবারে কাজ করে না। এই উপাদানটি ব্যবহার করার পরিবর্তে, বিভিন্ন স্ক্রিনের আকার এবং ঘনত্বের জন্য বিকল্প লেআউট এবং বিটম্যাপ ব্যবহার করে একাধিক স্ক্রীনের জন্য মাপযোগ্য সমর্থন প্রদান করতে একাধিক স্ক্রীন সমর্থন করার নির্দেশিকা অনুসরণ করুন।
আপনি যদি আপনার অ্যাপ্লিকেশনের জন্য ন্যূনতম স্ক্রীনের আকার সেট করতে চান, তাহলে
<supports-screens>
উপাদানটি ব্যবহার করুন। উদাহরণস্বরূপ, আপনি যদি চান যে আপনার অ্যাপ্লিকেশনটি শুধুমাত্র বড় এবং অতিরিক্ত-বড় স্ক্রীন ডিভাইসের জন্য উপলব্ধ হতে পারে, তাহলে<supports-screens>
উপাদানটি আপনাকে ঘোষণা করতে দেয় যে আপনার অ্যাপ্লিকেশনটি ছোট এবং সাধারণ স্ক্রীন আকার সমর্থন করে না। তারপরে, Google Play এর মতো বাহ্যিক পরিষেবাগুলি সেই অনুযায়ী আপনার অ্যাপ্লিকেশন ফিল্টার করে৷ এছাড়াও আপনি<supports-screens>
উপাদানটি ব্যবহার করতে পারেন ঘোষণা করতে যে সিস্টেমটি বিভিন্ন স্ক্রীন আকারের জন্য আপনার অ্যাপ্লিকেশনটির আকার পরিবর্তন করতে পারে কিনা।Google Play কীভাবে এটি এবং অন্যান্য ম্যানিফেস্ট উপাদানগুলি ব্যবহার করে অ্যাপ্লিকেশনগুলিকে ফিল্টার করে সে সম্পর্কে আরও তথ্যের জন্য, Google Play-তে ফিল্টারগুলি দেখুন৷
- শিশু উপাদান:
- উদাহরণ
যদি আপনার অ্যাপ্লিকেশনটি স্ক্রিনের ঘনত্ব নির্বিশেষে শুধুমাত্র ছোট এবং সাধারণ স্ক্রিনের সাথে সামঞ্জস্যপূর্ণ হয়, তাহলে আপনাকে অবশ্যই 12টি
<screen>
উপাদান নির্দিষ্ট করতে হবে, কারণ প্রতিটি পর্দার আকারে ছয়টি ভিন্ন ঘনত্বের কনফিগারেশন রয়েছে।আপনি এই প্রতিটি এক ঘোষণা করতে হবে. আকার এবং ঘনত্বের যেকোন সংমিশ্রণ যা আপনি নির্দিষ্ট করেন না তা একটি স্ক্রিন কনফিগারেশন হিসাবে বিবেচিত হয় যার সাথে আপনার অ্যাপ্লিকেশনটি সামঞ্জস্যপূর্ণ নয় ৷ আপনার অ্যাপ্লিকেশনটি শুধুমাত্র ছোট এবং সাধারণ পর্দার সাথে সামঞ্জস্যপূর্ণ হলে ম্যানিফেস্ট এন্ট্রিটি দেখতে কেমন হবে তা এখানে রয়েছে:
<manifest ... > ... <compatible-screens> <!-- all small size screens --> <screen android:screenSize="small" android:screenDensity="ldpi" /> <screen android:screenSize="small" android:screenDensity="mdpi" /> <screen android:screenSize="small" android:screenDensity="hdpi" /> <screen android:screenSize="small" android:screenDensity="xhdpi" /> <screen android:screenSize="small" android:screenDensity="xxhdpi" /> <screen android:screenSize="small" android:screenDensity="xxxhdpi" /> <!-- all normal size screens --> <screen android:screenSize="normal" android:screenDensity="ldpi" /> <screen android:screenSize="normal" android:screenDensity="mdpi" /> <screen android:screenSize="normal" android:screenDensity="hdpi" /> <screen android:screenSize="normal" android:screenDensity="xhdpi" /> <screen android:screenSize="normal" android:screenDensity="xxhdpi" /> <screen android:screenSize="normal" android:screenDensity="xxxhdpi" /> </compatible-screens> <application ... > ... <application> </manifest>
- প্রবর্তিত:
- API স্তর 9
- এছাড়াও দেখুন:
- পর্দা সামঞ্জস্য ওভারভিউ
- Google Play-তে ফিল্টার
<সামঞ্জস্যপূর্ণ-স্ক্রিন>
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# <compatible-screens\u003e\n\nsyntax:\n:\n\n ```xml\n \u003ccompatible-screens\u003e\n \u003cscreen android:screenSize=[\"small\" | \"normal\" | \"large\" | \"xlarge\"]\n android:screenDensity=[\"ldpi\" | \"mdpi\" | \"hdpi\" | \"xhdpi\"\n | \"280\" | \"360\" | \"420\" | \"480\" | \"560\" ] /\u003e\n ...\n \u003c/compatible-screens\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n: Specifies each screen configuration with which the application is compatible. Only one instance\n of the `\u003ccompatible-screens\u003e` element is allowed in the manifest, but it can\n contain multiple `\u003cscreen\u003e` elements. Each `\u003cscreen\u003e` element\n specifies a specific screen size-density combination with which the application is compatible.\n\n The Android system *doesn't* read the `\u003ccompatible-screens\u003e` manifest\n element at any point. This element is informational only and is used\n by external services, such as Google Play, to better understand the application's compatibility\n with specific screen configurations and to enable filtering for users.\n\n\n Any screen configuration that\n *isn't* declared in this element is a screen with which the application *isn't*\n compatible. External services, such as Google Play, don't provide the application to\n devices with such screens.\n\n\n **Caution:** Normally, *you don't use this manifest\n element* . Using this element can dramatically reduce the potential user base for your\n application by preventing users from installing your application if they have a device with a screen\n configuration that you don't list. Use it only as a last resort, when the\n application absolutely doesn't work with specific screen configurations. Instead of using this\n element, follow the guide to [supporting multiple screens](/guide/practices/screens_support) to\n provide scalable support for multiple screens using alternative layouts and bitmaps\n for different screen sizes and densities.\n\n\n If you want to set a minimum screen size for your your application, use the [`\u003csupports-screens\u003e`](/guide/topics/manifest/supports-screens-element) element. For example, if you want your application to be available\n only for large and extra-large screen devices, the `\u003csupports-screens\u003e` element lets\n you declare that your application doesn't support small and normal screen sizes.\n Then, external services like Google Play filter your application accordingly. You can also use the\n `\u003csupports-screens\u003e` element to declare whether the system can resize your\n application for different screen sizes.\n\n\n For more information about how Google Play filters applications using this and\n other manifest elements, see [Filters on Google Play](/google/play/filters).\n\n\nchild elements:\n:\n\n `\u003cscreen\u003e`\n\n : Specifies a single screen configuration with which the application is compatible.\n\n At least one instance of this element must be placed inside the `\u003ccompatible-screens\u003e`\n element. This element must include both the `android:screenSize` and\n `android:screenDensity` attributes. If you don't declare both\n attributes, then the element is ignored.\n\n Attributes:\n\n `android:screenSize`\n : **Required.** Specifies the screen size for this screen configuration.\n\n Accepted values:\n\n - `small`\n - `normal`\n - `large`\n - `xlarge`\n\n\n For information about the different screen sizes, see [Screen compatibility overview](/guide/practices/screens_support#sizes).\n\n `android:screenDensity`\n : **Required.** Specifies the screen density for this screen configuration.\n\n Accepted values:\n\n - `\"ldpi\"` (approximately 120 dpi)\n - `\"mdpi\"` (approximately 160 dpi)\n - `\"hdpi\"` (approximately 240 dpi)\n - `\"xhdpi\"` (approximately 320 dpi)\n - `\"280\"`\n - `\"360\"`\n - `\"420\"`\n - `\"480\"`\n - `\"560\"`\n\n\n For information about the different screen densities, see [Screen compatibility overview](/guide/practices/screens_support#density).\n\n\nexample\n\n: If your application is compatible with only small and normal screens, regardless\n of screen density, then you must specify 12 `\u003cscreen\u003e` elements,\n because each screen size has six different density configurations.\n\n You must declare each one of\n these. Any combination of size and density that you *don't* specify is considered a screen\n configuration with which your application *isn't* compatible. Here's what the manifest\n entry looks like if your application is compatible with only small and normal screens: \n\n ```xml\n \u003cmanifest ... \u003e\n ...\n \u003ccompatible-screens\u003e\n \u003c!-- all small size screens --\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"ldpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"mdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"hdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"xhdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"xxhdpi\" /\u003e\n \u003cscreen android:screenSize=\"small\" android:screenDensity=\"xxxhdpi\" /\u003e\n \u003c!-- all normal size screens --\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"ldpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"mdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"hdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"xhdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"xxhdpi\" /\u003e\n \u003cscreen android:screenSize=\"normal\" android:screenDensity=\"xxxhdpi\" /\u003e\n \u003c/compatible-screens\u003e\n \u003capplication ... \u003e\n ...\n \u003capplication\u003e\n \u003c/manifest\u003e\n ```\n\nintroduced in:\n: API level 9\n\nsee also:\n: [Screen compatibility overview](/guide/practices/screens_support)\n: [Filters on Google Play](/google/play/filters)"]]