简体   繁体   English

drawable-mdpi上的Android图像已在10.1in平板电脑和5.1上使用

[英]Android images on drawable-mdpi are beeing used on 10.1in tablet and 5.1

I need to develop my game for 5.1in devices to 10.1in devices...On 5.1, the imageviews look perfect, but on 10.1, they are too small. 我需要将游戏从5.1英寸设备开发到10.1英寸设备...在5.1上,图像视图看起来很完美,但是在10.1上,它们太小了。 Unfortunally, it looks like eclipse picks the same image for both 10.1 devices and 5.1: It´s the image i put on drawable-mdpi folder. 不幸的是,Eclipse似乎为10.1设备和5.1都选择了相同的图像:这是我放在drawable-mdpi文件夹中的图像。 Is there any chance it would use the image on drawable-xxhdpi folder when the device is 10.1in? 设备为10.1英寸时,是否有可能会使用drawable-xxhdpi文件夹中的图像? What should i do to make my images bigger on bigger android devices? 我应该怎么做才能在更大的android设备上放大图像?

You want to provide different resources based on the screen size in dp, not the dpi - see the docs on supporting multiple screeen sizes . 您要基于dp中的屏幕尺寸(而不是dpi)提供不同的资源-请参阅有关支持多种屏幕尺寸的文档。 This is because you can have xxhdpi displays on 4" devices, in which case your resources would be very small for the display. 这是因为您可以在4英寸的设备上显示xxhdpi显示器,在这种情况下,显示器的资源将非常小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM