Example usage for android.graphics RectF union

List of usage examples for android.graphics RectF union

Introduction

In this page you can find the example usage for android.graphics RectF union.

Prototype

public void union(RectF r) 

Source Link

Document

Update this Rect to enclose itself and the specified rectangle.

Usage

From source file:com.actionbarsherlock.internal.nineoldandroids.view.animation.AnimatorProxy.java

private void invalidateAfterUpdate() {
    View view = mView.get();/*from   w w  w .j  a  va  2 s  . c  o m*/
    if (view == null) {
        return;
    }
    View parent = (View) view.getParent();
    if (parent == null) {
        return;
    }

    view.setAnimation(this);

    final RectF after = mAfter;
    computeRect(after, view);
    after.union(mBefore);

    parent.invalidate((int) FloatMath.floor(after.left), (int) FloatMath.floor(after.top),
            (int) FloatMath.ceil(after.right), (int) FloatMath.ceil(after.bottom));
}