Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 actual values that was defined for that entry. However, I don't want Android Studio showing me the actual values. Instead, I still prefer that it showed the reference names. So, how do you disable the editor from previewing in this manner?

In the image below, android:text="@string/sign_up", but the editor is showing it as android:text="Sign up...", as well as other attributes, and the reference name only shows up when I mouseover the attribute.

How to disable this feature permanently via Android Studio setting/configuration?

Update: Same thing is happening in .java files. Enums or R.string constants are being replaced by their actual values.

enter image description here

like image 386
Poly Bug Avatar asked Nov 08 '16 19:11

Poly Bug


1 Answers

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

like image 186
Fabian Avatar answered Oct 07 '22 00:10

Fabian