In Marshmallow certain Unicode characters like u2666 (diamond) have a prescribed color that I can't seem to style to a different color. Is there any way to do this?
Asked
Active
Viewed 639 times
1
-
How are you doing the styling? – CommonsWare Feb 24 '16 at 16:53
-
1Possible duplicate of [Color in the Unicode standard?](http://stackoverflow.com/questions/9626115/color-in-the-unicode-standard) – Amit K. Saha Feb 24 '16 at 16:55
-
The question about "Color in the Unicode standard" might be a hint, but I can't find a way to specify the variant selector. @CommonsWare I'm willing to style it any way that might work. I've tried to use android:textColor, but this has no impact. – cyngus Feb 24 '16 at 17:35
-
You could try a `ForegroundColorSpan`. – CommonsWare Feb 24 '16 at 17:45
-
@CommonsWare unfortunately a ForegroundColorSpan doesn't change the appearance of that character. To make sure I was doing it right I applied the ForegroundColorSpan to my entire string, the ASCII characters in the string were styled, but not the unicode character in question. – cyngus Feb 24 '16 at 18:08
-
Hmmm... I don't know if this is somehow typeface-specific. If it is, you could try a different font. But, otherwise, I'm running short on ideas. – CommonsWare Feb 24 '16 at 18:12