简体   繁体   English

android ui设计对于相同的尺寸有所不同,但是屏幕尺寸不同,哪些设备具有硬件菜单按钮

[英]android ui design varies for the same dimensions but the screen sizes are different which devices are having hardware menu button

If device has hardware menu button then the layout design is corrupted.I'm having a layout which is fit for xxxhdpi devices.It was looking good in nexus6 but when I'm checking it in samsung galaxy note 4 which is also xxxhdpi device the screen design was corrupted.I observed that the samsung devices having hardware menu button where as nexus6 having the hardware menu button on the screen.So the height of the layout is vary.Can you please let me know how to handle this situation. 如果设备具有硬件菜单按钮,则布局设计已损坏。我有一个适合xxxhdpi设备的布局。在nexus6中看起来不错,但在三星galaxy note 4(也为xxxhdpi设备)中进行检查时屏幕设计已损坏。我观察到具有硬件菜单按钮的三星设备与在屏幕上具有硬件菜单按钮的nexus6一样,因此布局的高度各不相同,请让我知道如何处理这种情况。

注4 Nexus 6

this is resolution and density problem. 这是分辨率和密度问题。 I had the same problem and I solved it by adjusting the text-size and padding according to my device with button on screen and things automatically got fixed on the other device with same screen-size. 我遇到了同样的问题,我通过使用屏幕上的按钮根据我的设备调整文本大小和填充来解决该问题,并且在其他具有相同屏幕大小的设备上,东西自动得到修复。 First create layout file for 360 dip(layout-sw360 dip) and then adjust layout for your nexus 6.This problem will be resolved. 首先为360 Dip(layout-sw360 Dip)创建布局文件,然后为关系6调整布局。此问题将得到解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM