本文介绍了定义布局屏幕尺寸5“ - 7”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要专为规模5的屏幕定义不同的布局 - 7英寸。我该怎么办呢?
I want to define different layouts specifically for screens with size 5 - 7 inches. How can I do that?
例如:对于大小比7英寸更多的屏幕,我在布局sw6000dp
文件夹定义的布局。我怎么可以做同样的屏幕大小为5 - 7英寸
For example: for screens with size more than 7 inches, I defined the layouts in the layout-sw6000dp
folder. How can I do the same for screens with size 5 - 7 inches?
推荐答案
把他们布局的大,并使用DP为单位的尺寸。
Put them in layout-large, and use dp as the units for dimensions.
大定义为4.5-7英寸:
Large is defined as 4.5-7 inches:
您还可以使用布局sw600dp到布局XLARGE你> 7寸的布局改变。
You could also change from using layout-sw600dp to layout-xlarge for your >7 inch layouts.
这篇关于定义布局屏幕尺寸5“ - 7”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!