Is there a way to see the color preview
of integer variables
that defined as ARGB color in the left gutter of the Editor Window.
I mean something like the colors preview that registered as resource.
Here's a photoshopped screenshot which shows exactly what I mean.
It's not possible for int
ARGB values, because the IDE can't understand that they're colors, for they might be just numbers.
On the other hand, it can show the color preview in the gutter when you're referring to a resource because, parsing R.color.yourColor
, the IDE understands that it's a color by the qualifier R.color
rather than R.dimen
or something.
Alternatively, you may look into writing a plugin for Android Studio in order to achieve the desired result.