In my android application, there is an OpenGL Renderer over-layed over a canvas. The device i'm testing on is a Droid x.
I'm moving all the drawing functions over to Open Gl but I've noticed a curious issue.
It seems that the canvas draws starting at immediately after the notification bar, but the GL render starts at the tip of the screen.
This is a little important because the physics of my game are based on the metrics of the screen as they were drawn in the canvas.
Ideally, I think I could solve the problem by somehow shifting the GLview down by the height of the notification bar, but i'm not sure how to do this or if its possible.
Changing the following code seems to make it look correct from my application, but I need a way to make it more cross-platform safe.
I fix it by changing...
gl.glViewport(0, 0, width, height)
to
gl.glViewport(0, -38, width, height)