public class SvgColor
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
colorSvg2Vd(java.lang.String svgColorValue)
Converts an SVG color value to "#RRGGBB" or "#RGB" format used by vector drawables.
|
protected static java.lang.String |
colorSvg2Vd(java.lang.String svgColorValue,
java.lang.String errorFallbackValue,
com.android.ide.common.vectordrawable.SvgNode node)
Converts an SVG color value to "#RRGGBB" or "#RGB" format used by vector drawables.
|
@Nullable
protected static java.lang.String colorSvg2Vd(@NonNull
java.lang.String svgColorValue)
svgColorValue - the SVG color value to convertjava.lang.IllegalArgumentException - if the supplied SVG color value has invalid or unsupported
format@Nullable
protected static java.lang.String colorSvg2Vd(@NonNull
java.lang.String svgColorValue,
@NonNull
java.lang.String errorFallbackValue,
@NonNull
com.android.ide.common.vectordrawable.SvgNode node)
svgColorValue - the SVG color value to converterrorFallbackValue - the value returned if the supplied SVG color value has invalid or
unsupported formatnode - the node of the SVG tree used for reporting errors