Android的 - 放在RES /绘-xhdpi超大图像不显示在平板电脑模拟器,为什么呢? [英] Android - Extra large images placed in res/drawable-xhdpi aren't showing on tablet emulator, why?

查看:163
本文介绍了Android的 - 放在RES /绘-xhdpi超大图像不显示在平板电脑模拟器,为什么呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序似乎是从平板电脑大小的屏幕工作在不同的屏幕尺寸当然,除了

My app seems to be working on different sized screens well, apart from the tablet sized screens.

我的工作方式,是使用相对布局,其中有大量的图像。图像然后具有不同的尺寸放于文件夹,这将取决于哪个图像在电话使用拾取(取决于尺寸)

The way I have worked, is using a relative layout, which has lots of images. The images then have different sizes put in the folders, which will be picked up depending on which images the phone use ( depending on size )

我使用的文件夹是:

绘制 - 华电国际

绘制-MDPI

绘制-LDPI

^当我创建Eclipse中的项目,这些已经加入。

^ These were already added when I created the project in eclipse.

我看了,并添加绘制-xhdpi与期望,更大的屏幕会用这个。
然后我把图像,和我的布局看起来微小在Android 3.0模拟器。
所以,我再穿上在xhdpi图像中的一个标志,发现平板电脑模拟器实际上并没有使用这个图像。

I read, and added drawable-xhdpi with the expectation that the larger screens would use this. I then put the images in, and my layout looked tiny on the android 3.0 emulator. So, I then put a mark on one of the images in xhdpi, and found that the tablet emulator isn't actually using this images.

任何想法,为什么?
做一些事情需要在清单去?

Any ideas why? Does something need to go in the manifest?

推荐答案

这可有时与兼容模式

http://developer.android.com/guide/practices/屏幕COMPAT-mode.html

您可以声明,您支持这些额外的大屏幕是这样的:

You can declare that you support these extra large screens like this:

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

或尝试宣告你的目标SDK版本13,这会变成兼容模式关闭。的然而,这有其他的副作用

or try declaring that you target SDK version 13, this will turn compatibility mode off. however this has other side-effects

 <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="13" />

这一切都记录在上面的链接

It's all documented in the above link

这篇关于Android的 - 放在RES /绘-xhdpi超大图像不显示在平板电脑模拟器,为什么呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆