Code example for AbsoluteLayout

0
        mIsPaused = false;
 
        // Set up the surface 
        mSurface = new SDLSurface(getApplication());
 
        mLayout = new AbsoluteLayout(this);
        mLayout.addView(mSurface);
 
        setContentView(mLayout);
 
        SurfaceHolder holder = mSurface.getHolder();
    } 
 
    // Events 
    /*protected void onPause() { 
        Log.v("SDL", "onPause()"); 
        super.onPause(); 
        // Don't call SDLActivity.nativePause(); here, it will be called by SDLSurface::surfaceDestroyed 
    } 
 
    protected void onResume() {