I have a Panel
class, which extends SurfaceView
. The panel fills my whole activity. Inside the panel I draw a Ball - Bitmap (and some other stuff(lines/squares)).
I add some pseudo depth. Something like 2.5 D, not really 3D, but kind of. But now I am facing a problem, when the Ball goes into depth I don't know how to re size it. Because the Ball is constantly moving back and forth (left/right, up/down too).
I don't know where to read about it, but I think if I add the Bitmap to an ImageView
, this would solve all my problems.
My First question, does this even solve my problem? And if not, how else could I solve it.
And my second question is, how do I add an Imageview
on a SurfaceView
?
I found some good hints here: Implement a ImageView to a SurfaceView
but it only says what to do, not how to do it. Because nothing happens in my activity. Everything happens in my Panel
.