Is there an equivalent to DOM inspector for Android Native Layouts?
android, android-layout, google-chrome-devtools
Solution
Android does not keep the styling information after a View is created. The closest thing you can use is a tool called HierarchyViewer. You can learn more about this tool here: http://developer.android.com/tools/debugging/debugging-ui.html
You should also checkout http://github.com/romainguy/ViewServer to be able to use HierarchyViewer on production devices (we plan on making this requirement obsolete.)
Problem
When developing HTML5 webpages with CSS and javascript, I've found DOM inspectors like Chrome Developer Tools extremely helpful in root causing which CSS styles are being applied to which HTML5 elements on a webpage. The interface allows you to see the actual layout on the left, along with the DOM, with the CSS being applied to the page dynamically at that moment. My question is - does any tool exist that is similar to this for Android applications? Is there a way to identify which xml styles are being applied to which elements in an activity or application? This would be particularly helpful in seeing the "default" styles.xml in an application. Does anyone have any suggested tools to help figure out what styles are being applied to each element in an activity?