Screen Orientation

Link to Screen Orientation copied to clipboard

WCAG 2.1 - 1.3.4 AA Impact - Serious

Content within an application should not be restricted to one orientation.

Supported within:
XML Layouts

Impact

When someone has their device in a fixed or mounted orientation, an application in a different orientation becomes unusable.

Confirmation

  1. From portrait mode, rotate the device to landscape mode.
  2. One of the following will happen:
    • Inaccessible: App doesn't respond to rotation.
    • Accessible: App rotates to landscape mode.

How to Fix

Allow your application to support any orientation. Remove any restrictions such as the below examples:

this.setRequestedOrientation(..
//AndroidManifest.xml
android:screenOrientation="...