I would like to know how to make a button visible but when clicked I want it to be invisible so it won\'t be shown at all.
put this line in your Button's on click method.
Button's on click method.
Button.setVisibility(View.INVISIBLE);
EDIT: if you make totally gone the Button view and then try
Button.setVisibility(View.GONE);