@Override public void postInvalidateDelayed(long delayMilliseconds) { super.postInvalidateDelayed(delayMilliseconds); postInvalidateParentIfNeededDelayed(delayMilliseconds); }
@Override public void postInvalidateDelayed(long delayMilliseconds, int left, int top, int right, int bottom) { super.postInvalidateDelayed(delayMilliseconds, left, top, right, bottom); postInvalidateParentIfNeededDelayed(delayMilliseconds); }
switch (animation) { case PULSE: view.postInvalidateDelayed(ROTATION_PULSE_DURATION, DIRTY_REGION.left, DIRTY_REGION.top, DIRTY_REGION.right, DIRTY_REGION.bottom); rotation = ((int) Math.floor(rotation)) * 360f / ROTATION_PULSES; rotateDirtyRegion(rotation); view.postInvalidateDelayed(invalidationDelay, DIRTY_REGION.left, DIRTY_REGION.top, DIRTY_REGION.right, DIRTY_REGION.bottom);