With the departure of new more landscape terminals such as the LG G6 and the Samsung S8, the apps are displayed with a black strip at the top and bottom, how can you adjust that the app expands in its entirety?
With the departure of new more landscape terminals such as the LG G6 and the Samsung S8, the apps are displayed with a black strip at the top and bottom, how can you adjust that the app expands in its entirety?
You can specify the supported ratio for the App in AndroidManifest.xml
With the property android.max_aspect
you can assign the maximum value that the App will maintain its appearance, adapting to the.
<meta-data android:name="android.max_aspect"
android:value="ratio_float"/>
For screens with 19:6
format, its value is 1.86
and so that the app can be expanded to another ratio.
<application>
...
<meta-data android:name="android.max_aspect" android:value="2.1" />
...
</aplication>
Extracted from Official Android dev blog a>