Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No XML color preview in gutter

After trying just about everything, I cannot get the color preview to show in the XML editor in Android Studio. In my colors.xml file, I expect a line like <color name="colorAccent">#1AD270</color> to show a small square to the left of it in the gutter previewing the color.

Weirdly, it only happens in this particular project. When I open other Android Studio projects, the gutter icons appear normally.

I have completely reset my Android Studio settings, disabled/enabled gutter icons and changed the gutter background, none of which worked. Any help?

like image 753
rbjacob Avatar asked Oct 17 '25 09:10

rbjacob


1 Answers

Turns out that the color previews do not show up if you don't have an activity in your project. After adding the first activity, the color preview icons suddenly appear. Weird!

like image 61
rbjacob Avatar answered Oct 20 '25 00:10

rbjacob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!