Log in or register to post comments

Adding Buttons to surfaceview

February 26, 2014 - 7:33am #1

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

February 26, 2014 - 12:19pm #2

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). Although, more in general, the best is to analyze the sample code and find the way that best suits your layout needs.

Note that this is not much about Vuforia per se, rather an Android UI programming question.

 

Log in or register to post comments