A recent blog explains that we must use
<meta-data android:name="android.max_aspect" android:value="2.1" />
in <application>
element of AndroidManifest.xml for optimal display on super widescreen devices, e.g. Samsung Galaxy S8.
To test this, I installed my app (no max_aspect, no resizeableActivity flags; targetSdkVersion=22
, compileSdkVersion=24
) on an Android 7.1.1. emulator with custom 2960x1440 resolution. All activities, including immersive, fill the screen with no margins as shown in the blog post.
I added explicit
<meta-data android:name="android.max_aspect" android:value="1.5" />
and this also had no effect on the emulator.
So, the question: is this meta flag only checked on the real devices, or there is some configuration that I missed for my emulator?
Update: I tried to reach Neto Marin, the author of the cited blog post. I found a proud tweet about his contribution to the global Android Dev community, but could not get an answer from him.