标签:ide tom uid splay mat device 坐标 参数 dev
记录swipe滑动使用
向下滑动:
public void SwipeDown(int X){
int height = uidevice.getDisplayHeight();
int width = uidevice.getDisplayWidth();
int step = 50;
uidevice.swipe(width/2,height/2,width/2,height/2-X,step);
}
uidevice.swipe中有五个参数,分别对应了起点x轴坐标、起点Y轴坐标、终点X轴坐标、终点Y轴坐标,分多少步完成;
标签:ide tom uid splay mat device 坐标 参数 dev
原文地址:https://www.cnblogs.com/lian-lian/p/10122681.html