By JustAStudent
on Wed, 02/26/2014 - 15:33
Hi !
I am trying to work on the ImageTargets sample. I'd like to add buttons on the UI displaying the camera view.
I read ImageTargets.java and it seems like the graphical layout called in the OnCreate function is camera_overlay.xml, which displays the progressbar before displaying the camera view.
What I am trying to figure out is which .xml is called when the camera view is displayed (so I can add buttons), or which .java renders the camera view.
Adding Buttons to surfaceview
You can add the button programmatically on the overlay layout, as this acts as a sort of transparent layer on top of the GL view (i.e. the view in which the camera and the augmentations are rendered).