How to disable the preview of xml reference values in Android Studio settings/configuration?

前端 未结 2 1047
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 05:58

I\'m not sure if my question is worded correctly, but it\'s easier to show an image to explain my question.

In the XML editor, some values are replaced with the actu

相关标签:
2条回答
  • 2020-12-19 06:42

    For Java files you can go to Preferences->Editor->General->Code Folding and uncheck "Android string references" but this only applies to code not to xml layouts

    – Oleg Bogdanov

    0 讨论(0)
  • 2020-12-19 06:57

    I fought with this for hours! Having the values show up instead of the references is great, in most cases, but I was working with a project imported from AIDE and its layouts were a mess. I need to see the references, not the values. I found the "possible duplicate" link above, mentioned by zombie, but it didn't work (or so I thought).

    Finally, after reading this post, I tried unchecking the "Android string references" again, but this time I restarted Studio after (even though I wasn't prompted). If you have the same problem, the solution above should work, but save yourself (possibly) hours of aggravation and:

    Restart Studio after unchecking the "Android string references" setting!

    BTW, I would have added this as a simple comment, but SO wouldn't let me!

    0 讨论(0)
提交回复
热议问题