Canvas Problems

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Canvas Problems

Postby Rundroid » Mon Jan 25, 2010 10:10 am

Hello Guys
I have some questions to make:

Why the method @Override onDraw of MyClass extends SurfaceView does not star by its self , but I must call it from another function, for example, onKeyUp method:
ex

public void onKeyUp ... {
...
....
this.onDraw(getHolder().lockCanvas(null));
etc etc
.......
}

.... or call it by the underlying thread

2) When I draw the Car Image from a position to another, Canavas multiplicates the car including the last positions. I m looking for a repaint() method for the canvas.
Invalidate() doesnt ' work !

THANK YOU IN ADVANCE

Regards
Rundroid
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jan 25, 2010 9:57 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google Feedfetcher and 5 guests