Currently when I draw at 0,0 the status bar covers the drawing. Is there a way to adjust the position of the surface or do I need to build a draw offset in to account for status bar – effectively drawing everything starting at y=25?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure why the surfaceview overlaps the status bar (sounds like an android bug), but the easiest thing would probably be to use
glViewportto just define which area of the surfaceview you intend to use for drawing.If you can figure out how high the status bar is, then just subtract that from the height of your glViewport call, and then all your calls will be mapped to just inside the viewport range.