多屏显示不同的图像尺寸

发布于 2024-12-22 22:08:29 字数 390 浏览 3 评论 0原文

我的应用程序包含横幅、正文和底部,如下所示。布局在“2.7 英寸 QVGA、2.7 英寸 QVGA 滑块、3.2 英寸 HVGA 滑块但不适用于 5.1 英寸 WVGA 和 10.1 英寸 WXGA”中很好。我在我的 droid x 和 droid Bionic 上测试了这一点,其中一个具有较高的密度(下面的图 2),具有较高密度的一个生活在一个空的黑色空间中。有谁知道如何解决这个问题,使两个图像看起来相同。

注意:密度较高的图像不会拉伸图像,而仅存在于空白的黑色空间中。

在此处输入图像描述

在此输入图像描述

My app contain Banner, Body, and Bottom as shown below. The layout is fine in "2.7in QVGA, 2.7in QVGA slider, 3.2in HVGA slider BUT NOT in 5.1in WVGA and 10.1in WXGA". I tested this in both of my droid x and droid bionic, one of them has higher density (image 2 below), the one with higher density lives an empty black space. Does anyone know how to solve this so that both images will look the same.

Note: The one with higher density didn't stretch the image but only lives an empty black space.

enter image description here

enter image description here

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

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

发布评论

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

评论(1

离不开的别离 2024-12-29 22:08:29

阅读链接,它告诉您如何支持多种屏幕尺寸

http://developer.android。 com/guide/practices/screens_support.html

Read the link, it tells you how to support multiple screen sizes

http://developer.android.com/guide/practices/screens_support.html

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