Android的布局不同的决议 [英] Android Layout for Different Resolutions
本文介绍了Android的布局不同的决议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建各种屏幕分辨率不同的布局,如华电国际,xhdpi
等
I wish to create various layouts for various screen resolutions, like hdpi, xhdpi
etc.
我读了这里如何我能做到这一点。
I read up here about how i can do it.
所以我创建两个目录布局XLARGE
和布局大
在我的 RES
目录并放置在 XML
布局存在。
So i created two directories for layout-xlarge
and layout-large
in my res
directories and placed the xml
layout there.
我的手机,我知道是一个华电国际
手机死机说,它不能找到资源目录。
My phone that i know to be a hdpi
phone crashes saying it can not find resource directory.
我在做什么错。我的电话是三星Nexus S
。
What am i doing wrong. My phones is Samsung Nexus s
.
推荐答案
有关你的三星Nexus S手机,布局
文件夹将被使用。
For your Samsung Nexus S phone, the layout
folder will be used.
这篇关于Android的布局不同的决议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文