Android Studio仿真器和设计视图屏幕布局不准确
我正在与Android Studio和Galaxy Tab A7 Lite合作。
我在屏幕 /活动上有五行文本。
当我在模拟器和/或设计视图中查看屏幕布局(例如文本大小和相对定位)时,它们的布置与实际物理设备屏幕上的布置不同。物理屏幕上的文本更大,因此,它们所占用的整体高度和空间比在物理屏幕上要大于模拟器。
我已经检查了设备管理器中的设置,它们与产品规范匹配:8.7英寸,800 x 1340 MDPI。
还有其他设置可以影响模拟器 /设计视图布局吗?
I am working with Android Studio and with a Galaxy Tab A7 Lite.
I have five lines of text on a screen / activity.
When I view the screen layout (e.g. text sizes and relative positioning) in the emulator and/or in the Design view, they are not laid out the same way as on the actual physical device screen. The texts on the physical screen are bigger etc., and therefore the overall height and amount of space they take up is more on the physical screen than in the emulator.
I have checked the settings in the Device Manager, and they match the product specification: 8.7 inch, 800 x 1340 mdpi.
Is there any other setting that can effect the emulator / design view layout?
Here are some (not very good) screenshots: design view is on the left, emulator view on the right, and actual device screen is below:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在“查看选项”下,在“显示系统UI”上打勾,以显示系统的顶部动作栏和底部控制栏。
指令的图像
Under "View Options", tick on "Show System UI" to show the system's top Action bar and bottom Control bar.
Image of instructions
我看到可以在这里完成的两件事:
I see two things that can be done here: