libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionView.java
private void initPortraitListListener() {
    instructionLayout.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View instructionView) {
        boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE;
        if (!instructionsVisible) {
          showInstructionList();
        } else {
          hideInstructionList();
        }
      }
    });
  }
/**
   * For portrait orientation, attach the listener to the whole layout
   * and use custom animations to hide and show the instructions /sound layout
   */
For portrait orientation, attach the listener to the whole layout
and use custom animations to hide and show the instructions /sound layout
For portrait orientation attach the listener to the whole layout and use custom animations to hide and show the instructions / sound layout
private void initPortraitListListener() {
    instructionLayout.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View instructionView) {
        boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE;
        if (!instructionsVisible) {
          showInstructionList();
        } else {
          hideInstructionList();
        }
      }
    });
  }
private void initPortraitListListener ( ) { instructionLayout . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View instructionView ) { boolean instructionsVisible = instructionListLayout . getVisibility ( ) == VISIBLE ; if ( ! instructionsVisible ) { showInstructionList ( ) ; } else { hideInstructionList ( ) ; } } } ) ; }
For portrait orientation, attach the listener to the whole layout
 and use custom animations to hide and show the instructions /sound layout
For portrait orientation attach the listener to the whole layout and use custom animations to hide and show the instructions / sound layout