支持缩放变焦

This commit is contained in:
jenly1314
2018-11-19 17:29:55 +08:00
parent e188576610
commit 14e7ca4738
7 changed files with 194 additions and 28 deletions

View File

@@ -158,6 +158,10 @@ final class CameraConfigurationManager {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
if(parameters.isZoomSupported()){
parameters.setZoom(parameters.getMaxZoom() / 10);
}
theCamera.setDisplayOrientation(90);
theCamera.setParameters(parameters);