Issue
Sometimes in the activity or xml, Android studio editor directly shows the text that is mapped for the particular R.string and When I click on that text, it changes to R.string.<>.
Few times, I see activity or xml editor shows R.string.<>, now from the editor is there a short-cut to see what is the string in that reference without opening strings.xml?
Solution
You need to enable it under Preferences -> Editor -> General -> Code Folding.
It’s (as far as I can remember) the “Android String References”.
Note, you have to close/re-open the XML for this setting to “show”.
You can see how it looks (some code has been “red taped” for “corporate reasons” but you can see how even the @dimen/xxx
and the @string/xxx
in the contentDescription
has been expanded.
Answered By - Martin Marconcini
Answer Checked By - Willingham (JavaFixing Volunteer)