XXHDPI布局在不同的XXHDPI设备上不同 [英] XXHDPI Layout different on different XXHDPI devices

查看:87
本文介绍了XXHDPI布局在不同的XXHDPI设备上不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人能提供一些建议.我已经开发了一个应用程序,并且用户界面非常复杂,因此一个文件夹的标准布局还不够.我必须为每个分辨率创建一个布局文件夹.因此,文件夹布局如下:

I'm hoping someone could offer some advice. I have developed an application and the UI was pretty complicated, so the standard layout of one folder wasn't sufficient. I had to create a layout folder for each resolution. So the folder layout is as follows:

我的意思是: 布局-xxhdpi 布局-xhdpi

I had it as: layout - xxhdpi layout - xhdpi

等...

但是,在阅读开发者网站上的文章后,我将其更改为新的版式.但是,我已经在xxhdpi设备(三星s4)上进行了测试,布局是完美的,但是我收到了Sony Z3用户(也是xxhpi)的报告,认为该布局已关闭.我已经看到了它在该设备上的外观的屏幕截图,但看起来并不正确.

however, after reading an article on the developer website I changed it to the new layout. However, I have been testing on a xxhdpi device (samsung s4) and the layout is perfect but I have received reports from a Sony Z3 user (also xxhpi) that the layout is off. I have seen screen shots of how it looks on this device and it does not look right.

我是否缺少某些东西,我想如果我为xxhdpi设备开发一种布局,使其适合所有xxhdpi设备?

Is there something I'm missing, I thought if I developed a layout for xxhdpi device that it should fit all xxhdpi devices?

任何建议都将不胜感激

推荐答案

尝试这种方式,希望这将帮助您解决问题.

主要为多个设备和选项卡分辨率支持创建了三个不同的布局文件夹:

There mainly three various layout folder are created for multiple device and tab resolution support which are :

layout // for all devices
layout-sw600dp // for 7' tablet
layout-sw720dp // for 10' tablet

但是您必须根据可绘制的设备分辨率提供以下各种图像:

But you have to provide various images based on device resolution in drawable which are :

drawable // for common images
drawable-ldpi 
drawable-mdpi 
drawable-hdpi 
drawable-xhdpi
drawable-xxhdpi

这篇关于XXHDPI布局在不同的XXHDPI设备上不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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