通过getResources().getConfiguration().smallestScreenWidthDp获取即可
这篇文章讲了values-sw的适配:
https://blog.csdn.net/ihvcker/article/details/70242522?utm_source=itdadao&utm_medium=referral
这篇文章讲了drawable的适配
https://blog.csdn.net/myoungmeng/article/details/54090891