private void initializeLandscapeListListener ( ) { instructionLayoutText . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View instructionLayoutText ) { boolean instructionsVisible = instructionListLayout . getVisibility ( ) == VISIBLE ; if ( ! instructionsVisible ) { showInstructionList ( ) ; } else { hideInstructionList ( ) ; } } } ) ; }
For landscape orientation the click listener is attached to the instruction text layout and the constraints are adjusted before animating