Update your app to take advantage of the larger aspect ratio on new Android flagship devices

To deliver more engaging viewing experiences to their users, many Android OEMs are experimenting with new, super widescreen smartphones. Samsung has just announced a new flagship device, the  Samsung Galaxy S8, featuring a new display format with an aspect ratio of 18.5:9. At the Mobile World Congress earlier this year, LG also launched their new flagship device, the  LG G6, with an expanded screen aspect ratio of 18:9.


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="ratio_float"/>
Where  ratio_float  is the maximum aspect ratio your app can support, expressed as  (longer dimension / shorter dimension)  in decimal form. 

We recommend that you design your app to support aspect ratios of 2.1 or higher. For this, you would add the following to the  <application>  element: 

<meta-data android:name="android.max_aspect" android:value="2.1" />
Note : if you don't set a value, and  android:resizeableActivity  is not true, then the maximum aspect ratio defaults to 1.86 (roughly 16:9) and your app will not take advantage of the extra screen space.

As more super widescreen Android devices, like the Samsung Galaxy S8 and the LG G6, become available, you'll have more opportunities to display more content and create more engaging experiences with your app. 

For more details about how to support multiple screens on Android, please visit the page  Supporting Multiple Screens .
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值