Android S8+ warning message “does not support the current Display size setting and may behave unexpectedly”

纵然是瞬间 提交于 2019-12-05 20:03:49

Solved by adding in supports-screens

android:xlargeScreens="true"

and removing:

android:requiresSmallestWidthDp="600"

So you need to create different folders and maintain all xml in those folders.

The following is a list of resource directories in an application that provides different layout designs for different screen sizes and different bitmap drawables for medium, high, and extra high density screens.

res/layout/my_layout.xml             // layout for normal screen size ("default")
res/layout-small/my_layout.xml       // layout for small screen size
res/layout-large/my_layout.xml       // layout for large screen size
res/layout-xlarge/my_layout.xml      // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation

For more info see this link https://developer.android.com/guide/practices/screens_support.html

and for S8+ u can Extra large

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!