FAQ Database Discussion Community

SurfaceView on Android 2.3.6 doesn't render full region

In my app I create SurfaceView and use it from NDK using ANativeWindow API: ANativeWindow_lock and then ANativeWindow_unlockAndPost. The size of the surface is set by ANativeWindow_setBuffersGeometry to 320x480. The screen size is bigger - 480x800. The SurfaceView is stretched using LayoutParams to almost full screen. The problem that I...