In order to hide the button, call the setVisible method with either one of two arguments
imageButton.setVisible(View.INVISIBLE)
OR
imageButton.setVisible(View.GONE);
In order to hide the button, call the setVisible method with either one of two arguments
imageButton.setVisible(View.INVISIBLE)
OR
imageButton.setVisible(View.GONE);