getHTMLColor is not aware of ARGB color format which is commonly used in android xml files. This causes problem with coloring spans in resources. Instead of above it should be changed to parseColor() with supported formats: #RRGGBB #AARRGGBB Bug: https://code.google.com/p/android/issues/detail?id=58192 Change-Id: I16bdf4c5c2a3b5e216b44e5c1955cac0104b3e12