Hi I want to scroll dx or dy using AccessibilityService, currently I am using below code to scroll but this performs 1 full page scroll, how can i scroll based on values like (x1, y1) to (x2, y2) or using dx/dy using performAction() function in AccessibilityService.
public boolean scrollView(AccessibilityNodeInfo nodeInfo) {
if (nodeInfo == null) return false;
if (nodeInfo.isScrollable()) {
return nodeInfo.performAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD);
}
for (int i = 0; i < nodeInfo.getChildCount(); i++) {
if (scrollView(nodeInfo.getChild(i)) {
return true;
}
}
return false; }