"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Adding Buttons to surfaceview

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.

AlessandroB

Wed, 02/26/2014 - 20:19

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).