"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

toggle button to show textview overlay the camera

hi, i need help here, i want to make a togglebutton overlay my camera, i want that togglebutton will control my text view to visible and invisible..

i have create the inflater and reference it to my overlay.xml and create my toggle button here, in initApplication() method:

LayoutInflater inflater = getLayoutInflater();
mOverlayView = inflater.inflate(R.layout.overlay, null);
toggleButton1 = (ToggleButton) mOverlayView.findViewById(R.id.toggleButton1);

i have add these codes on my Runnable()

addContentView(mOverlayView, new LayoutParams(
                                    LayoutParams.FILL_PARENT,
                                    LayoutParams.FILL_PARENT));

but i dont know how to use toggle button to make my textview visible and invisible, and where i should write it... can anyone give help for me :)