Archive for March 2011

Android screen layout Hirerarchy Viewer

Playing around with a layout for Android screen finally got me in trouble. The visual presentation in the IDE isn’t exactly the same as when you run in the Android emulator. I went looking around for an alternative, it turns out that a Hierarchy Viewer ships with the SDK. Just load your app and the screen you want to examine in the emulator. Then fire up the Hierarchy Viewer and view your layout from there. This nice little app makes it easy to debug your screen layout. If your on windows goto your SDK lib dir on the command line, something like …\android-sdk-windows\tools\lib\ and execute hierarchyviewer.jar