Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}