How can I see what the current android layout looks like for debugging purposes?
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..
精彩评论