Change canvas width and height in android
<p>I want to change width and height of a canvas in android?
How can I do it?</p>

<pre><code>protected void onDraw(Canvas canvas) {
    canvas.drawColor(Color.WHITE);
    super.onDraw(canvas);
    final long now = SystemClock.uptimeMillis();
    if(movieStart == 0)
        movieStart = now;
    final int relTime = (int)((now - movieStart) % movie.duration());
    movie.setTime(relTime);
    movie.draw(canvas, 0, 0);
    this.invalidate();
}
</code></pre>

<p>Thanks</p>
