When is the Surface feature activated?

From the developer's textbook , he writes: This is called immediately after any structural changes (format or size) have been made to the surface. You should at this moment update the images on the surface. This method is always called at least once, after

I do not know what situations are related to structural changes. What about screen orientation?

+4
source share
1 answer

The method is called when the viewport is resized or first created.

If you rotate the screen vertically and horizontally, the size of the viewport may change, so you must reset your viewing and projection matrices.

See this blog for more details:

http://android-developers.blogspot.in/2009/04/introducing-glsurfaceview.html

+3
source

All Articles