Escolar Documentos
Profissional Documentos
Cultura Documentos
Provides:
Visual view of Layouts View hierarchy (View Hierarchy
launch an emulator
the <sdk>/tools/ directory. The first window you see displays a list of devices and emulators.
Tree View:
Examine individual View objects Relationships between View objects Use slider/mouse scroll wheel to zoom Search by: Filter by class or id edit box Nodes that match change from gray to bright blue Save tree screenshot: click Save As PNG Save as Photoshop (PSD) file: click Capture Layers Each UI is saved as separate Photoshop layer
Tree Overview
Smaller map represents entire Tree View window Used to identify part of view tree displayed on Tree View
Properties View
List of properties for selected View object Organized by category name
Layout View
Block representation of UI Used to navigate the UI Bold red: View that is currently selected Light red: Parent block of selected View White: visible View not a parent/child of selected View
when:
UI of current Activity changes User switches to new Activity
Three Panes:
View Object pane: shows hierarchical list of View
objects Pixel Perfect Loupe pane: holds a magnified screen im Pixel Perfect pane: displays the currently visible screen as it appears on the Emulator
the Activity whose UI you want to work with. Start Hierarchy Viewer and navigate to the Pixel Perfect window. At the top of the window, click Load Overlay. A dialog opens, prompting for the image file to load. Load the image file. Pixel Perfect displays the overlay over the screen image in the Pixel Perfect pane.
The lower left corner of the bitmap image (X=0, Y=max value) is
anchored on the lower leftmost pixel (X=0, Y=max screen) of the screen. By default, the overlay has a 50% transparency, which allows you to see the screen image underneath. You can adjust this with the Overlay: slider at the bottom of the Loupe pane.