I started an Android OpenGL application and I have the following classes:
class A extends Activity class B extends GlSurfaceView implements Renderer <
class A extends Activity class B extends GlSurfaceView implements Renderer
Okay, so the proper way of doing this is to have a constructor in the B class which takes in:
B(Context context, AttributeSet attrs) { super(context, attrs); }
And in the XML layout, use this:
The thing that was missing in my code was the constructor signature.