Optimize Android apps with new aspect ratio like S8 (18.5: 9)?

Just got a brand new S8 and I am trying to update my android apps (responsive) because a black bar appears on the screen due to app scaling at 37: 18 / 18.5: 9. Adding fixed height and width to app doesn't work. i still get this black bar on top. Removing the status bar is like removing the bits at the top and bottom.

I've created a new interactive app as an example, but native Android has the same problems.

enter image description here

+4


source to share


1 answer


Got! Jeej.

Once you find the Nato Marin article post , you can simply add <meta-data android:name="android.max_aspect" android:value="2.1" />

to an element <application>

in your AndroidManifest.xml.



Result: no black bar :)

enter image description here

+2


source







All Articles