in android plugin, how would you get the xml resou...
# intellij-plugins
g
in android plugin, how would you get the xml resource file linked to something like
R.layout.activity_main
in your code? I believe I can search for it with
FilenameIndex.getFilesByName
but isn't the PsiElement of
R.layout.activity_main
already linked to a physical file? It allows you to navigate to the file, so I assume there must be a way to get this reference directly from the element, avoiding the global search.