What is UI Automator Viewer?
The uiautomatorviewer tool provides a convenient GUI to scan and analyze the UI components currently displayed on an Android device. – From developer.android.com
Why should I care about UI Automator Viewer
With uiautomatorviewer, we can inspect the layout hierarchy and view the properties of UI components that are visible on the foreground of the device. For example, we can get the view hierarchy of Play Store.

How to use?
uiautomatorviewer is a tool delivered with android sdk. For mac users, you can find it in {HOME}/Library/Android/sdk/tools/bin/uiautomatorviewer. This is an binary execuable file and so you can exec it in terminal. Click device screenshot button and the view hierarchy is in front of you!
