How do I configure a Xamarin.Forms app to fill out phones with newer aspect ratios like the Samsung Galaxy S8?
Currently my Xamarin.Forms app looks like the one on the left below. What configuration do I need to change?
How do I configure a Xamarin.Forms app to fill out phones with newer aspect ratios like the Samsung Galaxy S8?
Currently my Xamarin.Forms app looks like the one on the left below. What configuration do I need to change?
Initially, I thought this might have been an issue with Xamarin. However, after further research I found it to be a new configuration for Android apps in general to support the 18:9 aspect ratio.
Here is the Android Developers Blog post describing the updates:
In order to take full advantage of the larger display formats on these devices, you should consider increasing your app's maximum supported aspect ratio. To do so, simply declare an
android.max_aspect
<meta-data>
element in the app's<application>
element:<meta-data android:name="android.max_aspect" android:value="2.1" />
This resolved the issue for me. Related answer here.