Let's say I have a resource @dimen/txt_size
with the value of 20
. When I open the XML layout file in the XML Text
editor, I will notice that it shows grey-colored value "20" instead of "@dimen/txt_size". This is normal behaviour as of IDEA 13 (as I think).
Then, when I click on the grey-colored text , the value "20" will convert to "@dimen/txt_size" as IDEA will stop enterpreting the value. All of this goes by plan.
But how can I return to value display
as it was the first time I opened the XML layout file?
I tried pressing ESC, clicking somewhere else, changing to another file and returning to this one... all in vain. I cannot make it display value "20" again.
No this is not a bug.
Its the default state of IntelliJ.
What happens is that instead of showing you the tag @dimen/txt_size it resolves that tag to its actual value ( 20 ) when compiled/parsed.
See example bellow:
The green one is the value parsed ( sync4 )
and the red one is what is actual value that exists in the xml file ${rabbit.host}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.