Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.graphics.Rect;
import android.view.View;

public class Main {
    static public Rect getPaddedFrame(View v) {
        return new Rect(v.getLeft() + v.getPaddingLeft(), v.getTop() + v.getPaddingTop(),
                v.getRight() - v.getPaddingRight(), v.getBottom() - v.getPaddingBottom());
    }
}