Fix Android XPath issue.

Add compatibility with android.view.View and android.widget.AdapterView.