本文介绍了大布局影响的Galaxy Note的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的应用程序有Android平板电脑特定的布局,另一个用于手机。

I want my app to have a specific layout for Android tablets and another for mobiles.

在为了做到这一点,我有两个文件夹中创建了两个布局文件,如:

In order to do this, I have created two layout files in two folders, like this:

layout/main.xml

layout-large/main.xml

欲小布局要应用于银河注。然而,大布局应用(这是正常的,因为它的分辨率使其适合作为大屏幕)。由于这种布局不适合很好地的Galaxy Note的屏幕尺寸,是否有正常的布局适用于Galaxy Note的一种方式?

I want the small layout to be applied to Galaxy Note. However, the large layout is applied (which is normal, since its resolution qualifies it as large screen). Since this layout does not fit well to Galaxy Note's screen size, is there a way to apply the 'normal' layout to Galaxy Note?

推荐答案

的Galaxy Note实际上有一个大屏幕。 大是指4.5〜和7之间的大小。

Galaxy Note has actually a 'large' screen. 'large' means the size between ~4.5" and 7".

因此​​,我建议使用平板电脑布局只在XLARGE设备(> 7):布局XLARGE / main.xml中

So I would recommend to use your tablet-layout only on 'xlarge' devices (>7"): layout-xlarge/main.xml

有关详细信息,看一看

For more info, have a look at this dev guide page.

这篇关于大布局影响的Galaxy Note的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 08:28