Which code checks if the device is currently in landscape?
- Build.ORIENTATION
- resources.configuration.orientation == Configuration.ORIENTATIONLANDSCAPE
- window.isLandscape()
- 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