支持所有屏幕尺寸的机器人? [英] Supporting all screen sizes in android?

查看:263
本文介绍了支持所有屏幕尺寸的机器人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经被问了好几次。但我无法找到bebest可能的解决方案,以我的查询。

I know this questions has been asked quite a few times. But I couldn't find the bebest possible solution to my query.

我已按照开发支持Android的给予每一步。
支持多屏

I have followed every step given in the developer support of android.
Support Multiple Screen

把图像在不同尺寸不同的文件夹。 制作不同的布局文件夹设备屏幕。 但问题坚持在4.7英寸到5.0英寸设备。 布局变得相当不安在这些设备上。

Putting images in different folders for different sizes. Making different layout folders for device screens. But the problem persist in the devices ranging from 4.7 inches to 5.0 inches. The layout gets quite disturbed on these devices.

这是克服最好与可能的方式。

What is the best and possible way to overcome that.

推荐答案

基本上一些设备属于大型或正常组,但他们有例 - 的高度和宽度的差异如此之大的Nexus-4 4.7 其尺寸 768x1280 和另外一个设备 5.1其尺寸 480×800 。所以,你可以创建根据高度和宽度的布局文件夹。对于示例 - 布局w480dp,布局w720dp或布局h800dp或布局h1280dp 。然后根据您的要求设置的观点在那些布局。

Basically some devices belongs to large or normal group but they have so much difference in height and width for example- Nexus-4 4.7" having dimensions 768x1280 and one other device 5.1" having dimensions 480x800. So you can create layouts folders depending upon height and width. For example- layout-w480dp, layout-w720dp or layout-h800dp or layout-h1280dp. Then set views in those layouts according to your requirement.

这篇关于支持所有屏幕尺寸的机器人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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