XML布局与模拟器不同

时间:2018-11-12 20:31:38

标签: android xml

我花了4个小时解决此问题,但无法解决。请提供任何帮助。当我更新android studio时,此问题卡在了android studio中。我正在使用android studio最新版本3.2.1。

ThreadProc

Here is attached image where you can see the difference of layout on both devices

1 个答案:

答案 0 :(得分:0)

首先,我想确认您使用的是nexus 4还是其他模拟器,因为在预览中您的屏幕被选择为nexus 4,并且显示的设备像素密度和分辨率与之相同。连结4 接下来,您将ID为“ firstScreen_image”的ImageView的dp设置为固定高度。固定高度(即350dp)在不同设备上的行为会有所不同。 因此,下一个问题是您希望屏幕看起来如何,我该如何帮助?

相关问题