In Android 2.2, I want to display a few sprites and clickable animations over an existing view. I just discovered that SurfaceView cannot be transparent
I tried overriding dispatchDraw()
of a LinearLayout
but that doesn't seem to be callable via a Runnable
Thread
.
I also tried to extend Canvas
directly, but that quickly turned into a mess when trying to place it in my XML layout.
Do I have to use GLSurfaceView to have a drawing view whose background is transparent?
Optimally, I'd like to just have a Canvas
on which I can draw Bitmap
at various coordinates, instead of dealing with the details of GL (unless GL is the only way I can do transparency).