A
A
Alexander Kolmachikhin2019-01-08 07:24:11
Java
Alexander Kolmachikhin, 2019-01-08 07:24:11

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

1 answer(s)
D
Denis Zagaevsky, 2019-01-08
@zagayevskiy

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 question

Ask a Question

731 491 924 answers to any question