/** Method that shows the buttons and text message when there's no diet registered */ private void showButtons() { ButtonFloat addbutton = (ButtonFloat) findViewById(R.id.button_add_diet); addbutton.setVisibility(View.VISIBLE); TextView noDietMessage = (TextView) findViewById(R.id.no_diet_message); noDietMessage.setVisibility(View.VISIBLE); }