Android Studio - how to make R.string show text in the editor

Viewed 1249

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?

3 Answers

To collapse to the string: with the cursor on the text, hit +. To expand to the variable: with the cursor on the text, hit +.

Under Windows, you can use "Ctrl" + "NumberPad+"/"NumberPad-" to fold/unfold the resource and code chunk.

1

Related