Screen Orientation

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard
Not for use with personal data

WCAG 2.1 - 1.3.4 AA Impact - Serious

Views should adhere to the user's preferred display orientation.

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="...