title: AnimationDrawable scaling down the images to animate
body: <p>I want to animate four images to be displayed in a row. In the layout XML-file I'm creating an ImageView: </p>
  
  <pre><code>&lt;ImageView
              android:id="@+id/exercisesAnimated"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:adjustViewBounds="true"
              android:layout_gravity="center_horizontal"/&gt;
  </code></pre>
  
  <p>In my code I then create the <code>AnimationDrawable</code>via</p>
  
  <pre><code>private void startAnimation() throws IOException {
      AnimationDrawable animation = new AnimationDrawable();
      String path = "Graphics/" + exercise.getName() + "/";
      InputStream is = getAssets().open(path + "1.jpg");
      animation.addFrame(Drawable.createFromStream(is, null), 800);
      is = getAssets().open(path + "2.jpg");
      animation.addFrame(Drawable.createFromStream(is, null), 800);
      is = getAssets().open(path + "3.jpg");
      animation.addFrame(Drawable.createFromStream(is, null), 800);
      is = getAssets().open(path + "4.jpg");
      animation.addFrame(Drawable.createFromStream(is, null), 800);
      animation.setOneShot(false);
  
      ImageView imageAnim = (ImageView) findViewById(R.id.exercisesAnimated);
      imageAnim.setBackgroundDrawable(animation);
  
      animation.start();
  }
  </code></pre>
  
  <p>So my problem is that the animated images become really small, like 1/3 of the original size of the images. These have a size of 460x250, I want them to be shown in that size.</p>
  
  <p>If I just put a <code>android:src="@drawable/oneOfTheImages"</code> to the ImageView and dont do the animation the image is displayed in the correct size.</p>
  
  <p>What's wrong?</p>