Log in or register to post comments

ImageButton on camera_overlay.xml

June 13, 2014 - 3:59am #1

Hey, 

I am developing an app through image target sample. I want to put a close button which is an imagebutton on camera_overlay.xml. I can make Imageview as i want but button activity can not be done. 

I add 

    button_close = (ImageButton) findViewById(R.id.button_close);
        button_close.setOnClickListener(this);

to the ImageTargetRenderer.java class, but it returns an error as : 

The method findViewById(int) is undefined for the type ImageTargetRenderer

I did add image buttons to AboutScreen.java class and never had any errors. How can i achieve that?

 

Thanks.

Log in or register to post comments