如何发布仅适用于分辨率为1024x600的平板电脑的Android应用程序?

发布于 2024-12-08 11:45:47 字数 95 浏览 2 评论 0原文

我需要知道如何定位特定的屏幕分辨率,我创建了一个仅在分辨率为 1024x600 的显示器上才能获得最佳观看效果的应用程序。有人知道在这种情况下我需要在清单文件中包含哪些属性吗?

I need to know how to target a particular screen resolution, I've created an app that is best viewed only on a display with a resolution of 1024x600. Anyone knows what attributes i need to have in the manifest file for this scenario?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晌融 2024-12-15 11:45:47

您能得到的最接近的结果是仅允许超大屏幕。
清单中:

<supports-screens android:xlargeScreens="true"/>

尽管为什么要将您的应用程序推销为仅 1 种屏幕分辨率?如果您对像素值进行硬编码,则说明您的实施方式不正确。使用 dp、match_parent (fill_parent) 和权重。

The closest you can get is to allow only xlarge screens.
In manifest:

<supports-screens android:xlargeScreens="true"/>

Although why would want to market your app to only 1 screen resolution? If you are hard coding pixel values, you are implementing incorrectly. Use dp, match_parent (fill_parent), and weights.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文