成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術文章
文章詳情頁

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

瀏覽:29日期:2022-09-23 18:20:13

最近 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
相關文章: