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

家住魔仙堡 提交于 2019-12-22 10:40:02

问题


I have this warning message in Samsung S8+ Android 7:

APP_NAME does not support the current Display size setting and may behave unexpectedly.

What it means and how can I remove it?

Thank you


回答1:


Solved by adding in supports-screens

android:xlargeScreens="true"

and removing:

android:requiresSmallestWidthDp="600"




回答2:


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



来源:https://stackoverflow.com/questions/46280380/android-s8-warning-message-does-not-support-the-current-display-size-setting-a

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