You generally shouldn't try to mix View objects and SurfaceView SurfaceView is a very special view that provides direct drawing by essentially punching a hole in the current window. It seems better to stick to bitmaps.
You generally shouldn't try to mix View objects and SurfaceView. SurfaceView is a very special view that provides direct drawing by essentially punching a hole in the current window. It seems better to stick to bitmaps.
Thanks for your reply. I would love to stick with Bitmaps. However, I cannot for the life of me figure out how to extend the Bitmap class - I'm pretty sure its locked down, right?
I want to create an Object which will be a Bitmap, and it has certain attributes. Is there a way to extend this class? – OhMisterRabbit Mar 27 at 17:46 What about using composition instead of inheritance?
In other words, your class will contain a Bitmap as an instance variable and have other data as instance variables as well. – Matthew Willis Mar 27 at 17:47.
So I've done a lot of searching but still can't seem to find the exact reason as to why my SurfaceView won't display. I have a Linear Layout that is set Horizontally. It contains an ImageView, then a vertical Linear Layout, and finally another ImageView.
In the vertical Linear Layout, there are essential three things: another ImageView at the top, an extended SurfaceView (called MagnetView) and an ImageView below that. Essentially, I want the MagnetView to show through (or punch a hole) where I put it in the Layout. But it does not display.
In fact, the only time my SurfaceView displays is when I set the activity's setContentView() to the SurfaceView explicitly, canceling out everything else. Should I place the SurfaceView at the top of my layout xml? Are there more attributes I must set?
Can I just overlay the SurfaceView over everything else, make it translucent and draw what I need? Any help would be greatly appreciated, as I cannot seem to grasp how SurfaceViews work. It seems they are apart of my View hierarchy, but then documentation tells me they are something different entirely.
My xml UI Designer shows a big box in the middle for my extended SurfaceView class, called MagnetView. I've outlined it in red.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.