Which code checks if the device is currently in landscape?

  1. Build.ORIENTATION
  2. resources.configuration.orientation == Configuration.ORIENTATIONLANDSCAPE
  3. window.isLandscape()
  4. display.rotation == 90 only
Answer

B) resources.configuration.orientation == Configuration.ORIENTATIONLANDSCAPE

The current Configuration holds the orientation.

Computer Science MCQ · More Screen Components and Orientation MCQs · Practise