code: private void initializePortraitListListener() {
      instructionLayout.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View instructionView) {
          boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE;
          if (!instructionsVisible) {
            showInstructionList();
          } else {
            hideInstructionList();
          }
        }
      });
    }
docs: For portrait orientation, attach the listener to the whole layout
  and use custom animations to hide and show the instructions /sound layout