diff --git a/library/src/main/java/com/jrummyapps/android/widget/AnimatedSvgView.java b/library/src/main/java/com/jrummyapps/android/widget/AnimatedSvgView.java
index 0d50cd5..57fe8fb 100644
--- a/library/src/main/java/com/jrummyapps/android/widget/AnimatedSvgView.java
+++ b/library/src/main/java/com/jrummyapps/android/widget/AnimatedSvgView.java
@@ -60,7 +60,7 @@ private static float constrain(float min, float max, float v) {
private int mTraceTimePerGlyph = 1000;
private int mFillStart = 1200;
private int mFillTime = 1000;
- private static final int MARKER_LENGTH_DIP = 16;
+ private int mTraceMarkerLength = 16;
private int[] mTraceResidueColors;
private int[] mTraceColors;
private float mViewportWidth;
@@ -101,9 +101,6 @@ private void init(Context context, AttributeSet attrs) {
mFillPaint.setAntiAlias(true);
mFillPaint.setStyle(Paint.Style.FILL);
- mMarkerLength =
- TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, MARKER_LENGTH_DIP, getResources().getDisplayMetrics());
-
mTraceColors = new int[1];
mTraceColors[0] = Color.BLACK;
mTraceResidueColors = new int[1];
@@ -119,6 +116,8 @@ private void init(Context context, AttributeSet attrs) {
mTraceTimePerGlyph = a.getInt(R.styleable.AnimatedSvgView_animatedSvgTraceTimePerGlyph, 1000);
mFillStart = a.getInt(R.styleable.AnimatedSvgView_animatedSvgFillStart, 1200);
mFillTime = a.getInt(R.styleable.AnimatedSvgView_animatedSvgFillTime, 1000);
+ mTraceMarkerLength = a.getInt(R.styleable.AnimatedSvgView_animatedSvgTraceMarkerLength,16);
+ mMarkerLength = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, mTraceMarkerLength, getResources().getDisplayMetrics());
int glyphStringsId = a.getResourceId(R.styleable.AnimatedSvgView_animatedSvgGlyphStrings, 0);
int traceResidueColorsId = a.getResourceId(R.styleable.AnimatedSvgView_animatedSvgTraceResidueColors, 0);
int traceColorsId = a.getResourceId(R.styleable.AnimatedSvgView_animatedSvgTraceColors, 0);
diff --git a/library/src/main/res/values/attrs.xml b/library/src/main/res/values/attrs.xml
index 49a83c2..e4f418a 100644
--- a/library/src/main/res/values/attrs.xml
+++ b/library/src/main/res/values/attrs.xml
@@ -27,6 +27,7 @@
+
\ No newline at end of file