Java tutorial
//package com.java2s; import android.graphics.RectF; public class Main { public static RectF getReduceRectF(RectF aRectF, int aReduceSize) { RectF rectF = new RectF(aRectF.left + aReduceSize, aRectF.top + aReduceSize, aRectF.right - aReduceSize, aRectF.bottom - aReduceSize); return rectF; } }