Android Studio预览版与真实设备不同

时间:2018-01-17 16:06:22

标签: android android-studio layout preview

我为三星Galaxy S7 Edge安装了AVD。 当我在Android工作室预览中查看布局时,它非常适合屏幕。但它在真实手机上看起来有所不同。

设备分辨率也是2560x1440

有什么问题?

屏幕设置AVD:

enter image description here

预览设置Android Studio:

enter image description here

屏幕截图电话:

enter image description here

1 个答案:

答案 0 :(得分:0)

您使用的Views ConstraintLayout太多ScrollView适合屏幕。要么使用$(function() { $("#testselectset").selectBoxIt({ theme: "default", defaultText: "Make a selection...", autoWidth: false }); $("#testselectset").change(function() { alert("You selected: " + this.value + " from the Selectboxit plugin"); }); }); 将视图设置为彼此直接关系,要么在根布局周围放置//span[@name='topCategory'][.='Beauty'] 。无论哪种情况,只有很多空间可以填补。