I’d like to use camera’s preview image as background image for a SurfaceView’s canvas.
How it can be done?
Thanks,
Eyal.
I’d like to use camera’s preview image as background image for a SurfaceView’s canvas.
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.
This is what worked for me :
I created a relative layout in the XML, Then i created a customCameraView and added it to to the layout, Then i created the GLSurfaceView, made the background translucent and set its setZOrderOnTop to true, then added it to the layout.