资源支持平板电脑和手机 [英] Supporting resources for tablets and mobiles
问题描述
我要支持bith MDPI,华电国际和xhdpi手机和7的应用程序'和10'片我不得不承认,我有点失落。
I need to support an application for bith mdpi, hdpi and xhdpi mobiles and 7' and 10' tablets I have to admit that I'm a bit lost.
到目前为止,我只是做了平板电脑版本,我所做的是:
So far I only did the tablet version and what I did is :
- 一个叫单个文件夹布局
- 3种不同的文件夹名为绘-sw600dp,绘-sw800dp和绘-SW1200包含600px的大,大的800像素和1200像素高画质图像。
我有IM pression我搞砸了,我应该有创建标准的绘制-MDPI,绘 - 华电国际和绘-xhdpi文件夹中。
I have the impression that I messed it up and that I should have the created standard "drawable-mdpi", "drawable-hdpi" and "drawable-xhdpi" folders.
但是,如果我这样做的:
But if I do so :
- 在哪个文件夹我必须把图像的平板电脑? xhdpi只?
- 应该多大(以PX)是为平板电脑的图像?
- 应该多大为手机中的图片?
- 和最后但并非最不重要? 如何有命名布局文件夹有手机和平板电脑的不同版本
- in which folder do I have to put the images for the tablets? xhdpi only?
- how large (in px) should be the images for the tablets?
- how large should be the images for the mobiles?
- and last but not the least : how to have to name the "layout" folders to have a different version for mobiles and tablets?
我已经读了Android建议,像1000次,我仍然困惑...
I already read the Android recommendation like a 1000 times and I am still confused...
修改1
此回答我的问题rel=\"nofollow\">款怎么有命名布局文件夹有手机和平板电脑的不同版本?
This paragraph from Android website answered my question "how to have to name the "layout" folders to have a different version for mobiles and tablets?"
编辑2
关于绘制文件夹,用于手机,它似乎很清楚,我要创建3个文件夹是这样的:
Regarding the drawable folders, for mobile phones, it seems quite clear that I have to create 3 folders this way :
- 绘制-MDPI
- 绘制,华电国际
- 绘制-xhdpi
含320像素宽度的图像
含480像素宽度的图像
含720像素宽度的图像
不过仍然是如何命名不同的文件夹绘制支持平板电脑的问题。
Still remains the question of how to name the different drawable folders for supporting tablets.
推荐答案
所以这将是我的答案。
布局 - > 2个文件夹:
Layouts -> 2 folders :
- 布局(或布局sw320dp),为移动
- 布局sw600dp平板电脑
可绘制 - > 5个文件夹:
Drawables -> 5 folders :
- 绘-MDPI的手机,含320像素宽度的图像
- 绘 - 华电国际的手机,含480像素宽度的图像
- 绘-xhdpi的手机,含720像素宽度的图像
- 绘-sw600dp7''平板电脑,含600像素宽度的图像
- 绘-sw720dp10''片剂,含720像素宽度的图像
任何比这更好的反应是欢迎!
Any better response than this one is welcome!
这篇关于资源支持平板电脑和手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!