简体   繁体   English

不同的可绘制分辨率

[英]different drawable resolutions

I want to deploy my application on different screen sizes using the 1.6 feature. 我想使用1.6功能在不同的屏幕尺寸上部署我的应用程序。 I exported the drawable resources with different resolutions in drawable-ldpi, drawable-mdpi and drawable-hdpi folders. 我在drawable-ldpi,drawable-mdpi和drawable-hdpi文件夹中导出了具有不同分辨率的可绘制资源。 On android 1.6 and 2.0 everything looks good. 在Android 1.6和2.0上,一切看起来都不错。

My problem is that on 1.5 the drawable-ldpi resources are used instead of drawable or drawable-mdpi ... the application still works but it renders the images scaled and the image quality is lost. 我的问题是在1.5上使用drawable-ldpi资源而不是drawable或drawable-mdpi ...应用程序仍然可以工作,但它会缩放图像并丢失图像质量。

How can I configure the application so that on 1.5 the only the drawable-mdi folder will be used? 如何配置应用程序,以便在1.5上只使用drawable-mdi文件夹?

I'd like to keep the apilevel to 3 so that the same apk will run on 1.5, 1.6 and 2.0. 我想保持apilevel为3,以便相同的apk将在1.5,1.6和2.0上运行。

尝试将-v4添加到-ldpi-mdpi-hdpi目录名称,并使用基本res/drawable/供Android 1.5使用。

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

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