Button playAgainButton = (Button) findViewById(R.id.playAgainButton); playAgainButton.setVisibility(View.INVISIBLE);