您的位置:首页技术文章
文章详情页

Android Studio 4.0 新功能中的Live Layout Inspector详解

【字号: 日期:2022-09-23 18:20:13浏览:16作者:猪猪

最近 Android Studio 4.0 稳定版本正式发布,其中一个重要升级就是新版的Layout Inspector

旧版的Layout Inspector

4.0 之前我们通过Tools -> Android -> Layout Inspector 可以对当前进程现实中画面进行分析,获取视图的Hierarchy以及Property信息

Android Studio 4.0 新功能中的Live Layout Inspector详解

Live Layout Inspector

4.0 通过同样的菜单可以打开新版的 Layout Inspector

Android Studio 4.0 新功能中的Live Layout Inspector详解

运行APP后,选择当前进程,可以看到当前运行中的画面:

Android Studio 4.0 新功能中的Live Layout Inspector详解

3D View

Live Layout Inspector 可以3D的形式显示Hierarchy,更利于开发者分析层次结构,(3D View 目前只能用于Api Level 29以上的app中)

Android Studio 4.0 新功能中的Live Layout Inspector详解

在3D视图中,通过右击菜单,可以显示选中层级的子View或者父View

Android Studio 4.0 新功能中的Live Layout Inspector详解

Resource Properties

Live Layout Inspector 的属性信息相对于老版本更加强大,通过资源的超链接,可以直接跳往Res文件:

Android Studio 4.0 新功能中的Live Layout Inspector详解

总结

到此这篇关于Android Studio 4.0 新功能之Live Layout Inspector的文章就介绍到这了,更多相关Android Studio 4.0 新功能之Live Layout Inspector内容请搜索好吧啦网以前的文章或继续浏览下面的相关文章希望大家以后多多支持好吧啦网!

标签: Android
相关文章: