diff --git a/src/com/caverock/androidsvg/SVGImageView.java b/src/com/caverock/androidsvg/SVGImageView.java
index <HASH>..<HASH> 100644
--- a/src/com/caverock/androidsvg/SVGImageView.java
+++ b/src/com/caverock/androidsvg/SVGImageView.java
@@ -76,6 +76,9 @@ public class SVGImageView extends ImageView
    

    private void  init(AttributeSet attrs, int defStyle)

    {

+      if (isInEditMode())

+         return;

+

       TypedArray a = getContext().getTheme()

                      .obtainStyledAttributes(attrs, R.styleable.SVGImageView, defStyle, 0);

       try
Don't perform SVGImageView initialisation if View is in edit mode.