glView = new GLView(this);glView.getHolder().setFormat(PixelFormat.RGBA_8888); // Gives smooth gradient.setContentView(glView);