Answer the question
In order to leave comments, you need to log in
How to correctly display SurfaceView?
I need to display a SurfaceView in a separate block. In all the lessons, for example, it is placed in setContentView(new MySurfaceView(this)), but this way it fills the entire screen, which is not surprising.
How do I display my SurfaceView on the main screen along with other items in a block that I have specially prepared for it?
Answer the question
In order to leave comments, you need to log in
addView to this block. And in general it is possible and to zafigatit it directly in xml.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question