title: Set large image on custom imageview isn't working
body: <p>What I'm trying to create is an ImageView scaleable and scrollable which also accepts large images. Currently I have this method in my overrided custom ImageView:</p>
  
  <pre><code>public void setLargeImageFromResource(int imageResource){
          BitmapFactory.Options options=new BitmapFactory.Options();
          options.inSampleSize = 10;
          Bitmap bitm = 
          BitmapFactory.decodeResource(getContext().getResources(), 
          imageResource, options);
          super.setImageBitmap(bitm);
  }
  </code></pre>
  
  <p>I call it in my constructor like so:</p>
  
  <pre><code>public TouchImageView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
  
          TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.TouchImageView, defStyle, 0);
          int base = a.getResourceId(R.styleable.TouchImageView_imageDrawable, R.drawable.kaart);
          setLargeImageFromResource(base);
      }
  </code></pre>
  
  <p>My Layout XML looks like this:</p>
  
  <pre><code>&lt;nl.raakict.android.util.TouchImageView
      android:id="@+id/plattegrond"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      imageDrawable="@drawable/kaart"
   /&gt;
  </code></pre>
  
  <p>And my attrs.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;declare-styleable name="TouchImageView"&gt;
          &lt;attr name="imageDrawable" format="string"/&gt;
    &lt;/declare-styleable&gt;
  &lt;/resources&gt;
  </code></pre>