Programmer Question
I have a class that extends View and I draw everything I need inside it's canvas in the onDraw method. Something like this:
protected void onDraw(Canvas canvas) {
synchronized (this) {
float h = mHeight;
float w = mWidth;
canvas.drawColor(Color.WHITE);
float roadLine= (85.0f/100.0f)*h;
canvas.drawBitmap(mTop, 0, roadLine-mTop.getHeight(), null);
//this is what I'd like to animate
canvas.drawBitmap(mSmoke);
}
}
Now, how do I make an Animation (tween animation) draw in here?
Find the answer here
No comments:
Post a Comment