Android examples for Animation:Scale Animation
scale RectF
//package com.java2s; import android.graphics.RectF; public class Main { static void scaleRect(RectF rectF, float scale) { scaleRect(rectF, scale, scale);// w w w . j a va2 s. c o m } static void scaleRect(RectF rectF, float scaleX, float scaleY) { rectF.left *= scaleX; rectF.top *= scaleY; rectF.right *= scaleX; rectF.bottom *= scaleY; } }