SurfaceView
SurfaceView is a view that you can embed within your application layout. It is designed for the specific purpose of drawing custom content or for performing complex animations. Unlike other views that draw their content within the view's bounds in the UI thread, SurfaceView provides a dedicated drawing surface that is managed by a separate thread. This separation is crucial for performance-intensive drawing operations, as it prevents the UI thread from being blocked.
When you use a SurfaceView, you typically obtain a SurfaceHolder from it. The SurfaceHolder is an interface
One of the primary advantages of SurfaceView is its ability to render content that can overlay or