获取Android手机的分辨率通过ADB命令
adb shell dumpsys window displays//此命令即可获取
WINDOW MANAGER DISPLAY CONTENTS (dumpsys window displays)
Display: mDisplayId=0init=720x1280 320dpi cur=720x1280 app=720x1280 rng=720x670-1280x1230
//得到的分辨率layoutNeeded=false
记录下学习心得 看不懂得如下图:
打出对应的adb命令即可: