Scroll dx, dy using AccessibilityService in Android

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

Hi I want to scroll dx or dy using AccessibilityService, currently I am using below code to scroll but how can i provide dx or dy to performAction() function.

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;
}
 
I moved this to the Software Development forum for more specific traffic.
 

Trending Posts

Members online

Forum statistics

Threads
956,385
Messages
6,967,944
Members
3,163,527
Latest member
dayssss2