(gestureTolerance(detector)) {
//small
scaleFactor *= detector.getScaleFactor();
scaleFactor = Math.max(1f, Math.min(scaleFactor, SMALL_MAX_SCALE_FACTOR));
isInProgress = scaleFactor > 1;
smallRecyclerView.setScaleX(scaleFactor);
smallRecyclerView.setScaleY(scaleFactor);
//medium
scaleFactorMedium *= detector.getScaleFactor();
scaleFactorMedium = Math.max(0.8f, Math.min(scaleFactorMedium, 1f));
mediumRecyclerView.setScaleX(scaleFactorMedium);
mediumRecyclerView.setScaleY(scaleFactorMedium);
//alpha
mediumRecyclerView.setAlpha((scaleFactor - 1) / (0.25f));
smallRecyclerView.setAlpha(1 - (scaleFactor - 1) / (0.25f));
}
return true;
}