android - 如何在布局编辑器上启用标尺?

标签 android android-layout android-studio user-interface

我在 Android Studio 中看到了一些布局编辑器,在预览窗口的顶部和侧面都有一个标尺,我试图弄清楚如何启用它,有什么想法吗?我正在使用 Android Studio 3.0.1,但我看不到它们。

enter image description here

最佳答案

似乎标尺已从 Preview 中删除自 Android Studio 3.0 以来的 Layout Inspector 选项卡。现在是 2020 年,Android Studio 4.0 有一个新的 Layout Validation用于在不同设备上预览布局和显示配置的工具。不太一样,但至少 Layout Inspector 似乎比那些日子可靠得多。
更多详情请访问:https://developer.android.com/studio/debug/layout-inspector#layout-validation

关于android - 如何在布局编辑器上启用标尺?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49100558/

相关文章:

java - 未检测到同时按下多个按钮

java - LibGDX Sprite 不旋转 "Rotate"和 "setRotation"

android - 输入字符串错误 : "12" Android studio

android - 使用 Parse.com 动态填充后获取 Spinner Selection

java - 是否有支持 SQLite(在 Android 上)的好的 ORM(最好是 JPA 实现)?

java - 安卓单元测试 : How to mock a listener that is sent as argument to an asynchronous method?

android - 如何使用 fastscroll 和 albhabet 索引器实现 ListView

android - 在 CoordinatorLayout 中添加固定的页脚按钮

android - 自定义 <Key> 的外观

android-studio - 错误 :Execution failed for task ':app:transformClassesWithDexForOfficialRelease' . > 无法在空对象上调用方法 getMainManifest()