获取手机屏幕尺寸

1、使用AppiumDriver获取:

    int width = driver.manage().window().getSize().width;
    int height = driver.manage().window().getSize().height;

2、使用adb获取:

    adb shell wm size

猜你喜欢

转载自blog.csdn.net/hxy199421/article/details/85092354