Android-如何区分Galaxy S-3和Galaxy S-4布局? [英] Android- How to differentiate Galaxy S-3 and Galaxy S-4 layouts?

查看:105
本文介绍了Android-如何区分Galaxy S-3和Galaxy S-4布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在区分三星银河s4和三星银河s3的布局文件夹时遇到问题.我尝试过layout-sw360dp,layout-sw360dp-xxhdpi,layout-sw360dp-xhdpi等.一直以来,galaxy s4和galaxy s3都从layout-sw360dp-xhdpi中选择.

I am having problem differentiating layout folders for samsung galaxy s4 and samsung galaxy s3. I have tried layout-sw360dp, layout-sw360dp-xxhdpi, layout-sw360dp-xhdpi etc. All the time galaxy s4 and galaxy s3 both picks from layout-sw360dp-xhdpi.

这两个设备的正确布局文件夹应该是什么?

So what should be the correct layout folder for both of these devices ?

推荐答案

我在项目中使用了一些特定的分辨率值,以将其与其他布局和屏幕区分开来.

I am using some specific resolution values in my projects in order to differentiate these from other layouts and screens.

您可以创建具有从gsmarena可以看到的最小最小高度和宽度值的布局.

You can create layouts with exact minimum height and width values that can be seen from gsmarena.

三星S3: http://www.gsmarena.com/samsung_i9300_galaxy_s_iii-4238.php a>

S3布局文件夹名称:layout-w720-h1280

S3 layout folder name: layout-w720-h1280

三星S4: http://www.gsmarena.com/samsung_i9500_galaxy_s4-5125.php

S4布局文件夹名称:layout-w1080-h1920

S4 layout folder name: layout-w1080-h1920

因此,他们将通过创建此类布局文件夹来使用相应的布局.

So they will be using corresponding layouts by creating layout folders like these.

这篇关于Android-如何区分Galaxy S-3和Galaxy S-4布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆