Code example for ToggleButton

Methods: setOnClickListener

0
    public void deinitButtons() 
    { 
    	if (overlayView == null)
    		return; 
    	 
        startButton.setOnClickListener(null);
        clearButton.setOnClickListener(null);
        deleteButton.setOnClickListener(null);
         
        startButton = null;
        clearButton = null;
        deleteButton = null;
    } 
     
     
    /** Send a message to our gui thread handler. */ 
    public void sendThreadSafeGUIMessage(Message message)
    { 
    	mainActivityHandler.sendMessage(message);
    }