Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Split-screen mode

Android 7.0 introduced "split-screen mode" for applications, and if your application targets API 24 or higher, there are certain aspects of this mode that can be controlled from within your code environment.

...

To disable split-screen mode, add the following attribute to the <application> node of your application's manifest file:

android:resizeableActivity="false"

E.g.:


Full screen mode

Recent flagship Android devices from popular manufacturers included displays with a new display format with an aspect ratio of 18.5:9, devices such as the Samsung Galaxy S8, S8+, S9, S9+, LG G6 and the Mi Mix.

...

To let Android know that your application is aware of the new aspect ration, please add the following node into the <application> node of your application's manifest file:

<meta-data android:name="android.max_aspect" android:value="2.1" />

E.g.:

Adding the above will tell the Android OS that your application is aware of the new aspect ratio, and prevent Android from offering the full screen mode switching buttons.

...