支持所有屏幕尺寸的机器人?机器人、屏幕尺寸

2023-09-07 22:29:23 作者:缺爱先森

我知道这个问题已经被问了好几次。但我无法找到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.