Increase screen ratio for Samsung S8 and LG G6 on Android

1

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?

    
asked by Webserveis 31.03.2017 в 12:57
source

1 answer

2

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>

    
answered by 31.03.2017 / 12:57
source