Android examples for Graphics:Rectangle
get Reduce RectF
//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);/* w ww . j a va 2 s . com*/ return rectF; } }