Can you explain what you are trying to do? Inspector is great and all, but at the end of the day it’s just a tool that has some limitations. There are users on this forum who don’t use Inspector at all, but rely on methods like:
This may just be a limitation of Inspector. You could try the ‘copy xml source to clipboard’ button on inspector and then search for ‘tag’ and see what you find.
I just tried on my app but we either don’t use tags, or I can’t see them. Really if you are looking for elements the best advice is to use ‘resource-id’, which is a more standard approach.
I don’t think you can see these in UIAutomatorViewer either, so I would say it’s a limitation of the tools, not a problem in your code.
Tags won’t be visible in the UiAutomator page source because they are not exposed to the accessibility framework. Although you can use Espresso driver as a possible alternative.