Sponsored Links
public class CameraStream extends Activity { private Preview preview; private GLSurfaceView mGLSurfaceView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // requestWindowFeature(Window.FEATURE_NO_TITLE); preview = new Preview(this); setContentView(preview, new ViewGroup.LayoutParams(200, 200)); // overview = new OverView(this); // addContentView(overview, new ViewGroup.LayoutParams(-1, -1)); mGLSurfaceView = new GLSurfaceView(this); mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); mGLSurfaceView.setRenderer(new CubeRenderer(true)); mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); addContentView(mGLSurfaceView, new ViewGroup.LayoutParams(-1, -1)); } } SurfaceView under GLSurfaceView is displayed when describing it like this. I want to have them display GLSurfaceView on SurfaceView. --