how can I clear a transparent or translucent canvas

by Romain Guy » Fri, 13 Mar 2009 02:47:05 GMT

Sponsored Links
 Argh yes, drawColor(0) is for opaque Canvas, sorry :)

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


Other Threads

1. how to load the related Bitmap according to input


I have met an issue.
There are some pics in the res/drawable named as pic_1.png, pic_2.png,
pic_3.png, pic_4.png.... I want to load someone according to the
For instance, if I input 2, I want to load pic_2.png. If input 3, will
load the pic_3.png....
How to achieve? Need your expert help here...


2. Does StreetView work in Android?

Hi gang:

StreetView just released for Canada this week. I am interested in
using it to augment one of my apps set in downtown Montreal.

Now the mapview method called something like setStreetView(true) does
highlight the streets where streetview imagery is available, but that
seems to be all it does.

I don't believe that phones run Flash which seems to be a necessity
for using Streetview. Am I missing something? That is, is there any
way I can zoom into a Streetview image in one of my location-based
Android apps just by providing the lat/long?

If this isn't already available. I'm sure it is coming soon

3. Should I use Canvas or SurfaceView for a chess game?

4. Need to place Childe view starting from left side

5. Archos WVGA/720p Tablet and Google Android Apps

6. A competitor to Motorola CLIQ

7. hape android