Added resource id attribute to the uiautomatorviewer

Modified the UiSelector as well to support the naming
convention used for the id.

bug:8099047
Change-Id: I4f467d323492ff51e332ed69cc6a3b655c5700c8
3 files changed