Android onAccessibilityEvent get X and Y position of TextView

Viewed 3633

I am trying to get the X and Y position of a TextView on my screen using Accessibility service to find the TextView, is this possible? Everything I have found requires you first to touch the screen. Here is how I am getting my node information.

public class MyAccessibilityService extends AccessibilityService {

    @TargetApi(16)
    @Override
    public void onAccessibilityEvent(AccessibilityEvent event) {
        AccessibilityNodeInfo source = event.getSource();
    }
}
1 Answers
Related