title: How to set size of the image?
body: <p>I have <strong>splash.png</strong> and want that this image take all place on the screen like <code>fitXY</code> for <code>ImageView</code>. <strong>splash.png</strong> has sizes 480x767.</p>
  
  <p>What does I must to change in my code?</p>
  
  <pre><code>public class BitmapConfigView extends LinearLayout {
  private Bitmap mImage;
  private Paint mPaint = new Paint();
  
  public BitmapConfigView(Context context) {
      super(context);
  
      BitmapFactory.Options opts = new BitmapFactory.Options();
      opts.inPreferredConfig = Bitmap.Config.ARGB_8888;
      opts.inScaled = false;
      mImage = BitmapFactory.decodeResource( getResources(), R.drawable.splash, opts);
  
      mPaint.setDither(true);
      setWillNotDraw(false);
      setOrientation(VERTICAL);
      setGravity(Gravity.BOTTOM);
  }
  
  @Override
  protected void onDraw(Canvas canvas) {
      canvas.drawBitmap(mImage, 0.0f, 0.0f, mPaint);
  }
  }
  </code></pre>