if (!mParameters.isZoomSupported()) return;
mZoomMax = mParameters.getMaxZoom();
- Log.v(TAG, "Max zoom=" + mZoomMax);
mSmoothZoomSupported = mParameters.isSmoothZoomSupported();
- Log.v(TAG, "Smooth zoom supported=" + mSmoothZoomSupported);
mGestureDetector = new GestureDetector(this, new ZoomGestureListener());
mCameraDevice.setZoomCallback(mZoomCallback);
}
}
}
- Log.v(TAG, String.format(
- "Optimal preview size is %sx%s",
- optimalSize.width, optimalSize.height));
return optimalSize;
}
mPosition = mSwitch ? available : 0;
}
int offsetTop = getPaddingTop() + mPosition;
- Log.v(TAG, "mPosition = " + mPosition
- + ", mAnimationStartTime = " + mAnimationStartTime
- + ", mSwitch = " + mSwitch);
int offsetLeft = (getWidth()
- drawableWidth - getPaddingLeft() - getPaddingRight()) / 2;
int saveCount = canvas.getSaveCount();