简体   繁体   English

Android屏幕尺寸支持

[英]Android screen sizes support

I have carefully read the documentation in http://developer.android.com/guide/practices/screens_support.html and another related websites but I am still having doubts. 我已经仔细阅读了http://developer.android.com/guide/practices/screens_support.html和其他相关网站中的文档,但仍然有疑问。 Let me explain: 让我解释:

I have implemented dimens.xml for values, values-large and values-xlarge, so my Android application is nice when running on a tablet, for example. 我已经为值,values-large和values-xlarge实现了dimens.xml,因此,例如,在平板电脑上运行时,我的Android应用程序很好。 However, I have specified paddings, margins, text sizes and that stuff, but I don't know what to do with the images. 但是,我指定了填充,边距,文本大小和类似内容,但我不知道如何处理图像。

The problem is that images are small in comparison to the text sizes I put in dimens.xml. 问题是,与我放入dimens.xml中的文本大小相比,图像较小。 So, what should I do? 所以我该怎么做?

Should I create drawable-mdpi-large, drawable-hdpi-large, drawable-xhdpi-large, drawable-xxhdpi-large, drawable-mdpi-xlarge, and so on? 是否应该创建drawable-mdpi-large,drawable-hdpi-large,drawable-xhdpi-large,drawable-xxhdpi-large,drawable-mdpi-xlarge等? (too much images for my APK) (我的APK的图片过多)

Thanks in advance, 提前致谢,

是的,你需要把你的图片在4个文件夹像华电国际,LDPI,MDPI,xhdpi一旦看到这个更多信息

Ofcourse, you want to create various drawable folder to set the images , so that as per the screen pixels the app automatically collect the exact image from drwable folder 当然,您需要创建各种可绘制文件夹来设置图像,以便使应用程序根据屏幕像素自动从drwable文件夹中收集确切的图像

I prefer this site ,it is more useful for you to set the images as per drawables.. 我更喜欢这个网站,它对您根据可绘制图像设置图像更有用。

http://www.creativefreedom.co.uk/icon-designers-blog/android-app-icon-size-guide-4-0/ http://www.creativefreedom.co.uk/icon-designers-blog/android-app-icon-size-guide-4-0/

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

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