开发者

How can I see what the current android layout looks like for debugging purposes?

开发者 https://www.devze.com 2023-04-08 01:28 出处:网络
In my android application, I frequently add and remove parts of my layout. Is there a way I开发者_Go百科 can log or capture the layout at specific points? I want to see the way my buttons and layouts

In my android application, I frequently add and remove parts of my layout. Is there a way I开发者_Go百科 can log or capture the layout at specific points? I want to see the way my buttons and layouts are nested to ensure it is as I want it to be at that moment.


Use the hierarchyviewer tool that comes with the SDK, in the platform-tools directory.


You can take screenshots using DDMS, or in Eclipse, view the layout as you create it..

0

精彩评论

暂无评论...
验证码 换一张
取 消