Java tutorial
//package com.java2s; //License from project: Creative Commons License import android.graphics.Rect; import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat; import android.view.accessibility.AccessibilityNodeInfo; public class Main { public static Rect getBoundsInParent(AccessibilityNodeInfo nodeInfo) { Rect rect = new Rect(); nodeInfo.getBoundsInParent(rect); return rect; } public static Rect getBoundsInParent(AccessibilityNodeInfoCompat nodeInfo) { Rect rect = new Rect(); nodeInfo.getBoundsInParent(rect); return rect; } }