【发布时间】:2018-07-03 15:33:20
【问题描述】:
我的 android 应用中有一个文件夹,标签为:values-sw360dp 我已经在最小宽度为 360 的不同手机上对此进行了测试:
Configuration config = context.getResources().getConfiguration();
int x = (int)config.smallestScreenWidthDp; //x = 360
但所有这些手机看起来都不同(一些按钮不在屏幕上),尽管它们的 x = 360。我如何为这些不同的手机提供尺寸?
我遇到了以下stackoverflow article,以及这个one,它表示有不同种类的sw360...但我很困惑。
【问题讨论】:
标签: android android-layout android-fragments material-design