支持扫二维码过小时,自动缩放
This commit is contained in:
Binary file not shown.
@@ -1 +1 @@
|
||||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":9,"versionName":"1.1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":10,"versionName":"1.1.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||
@@ -29,8 +29,7 @@
|
||||
android:name=".EasyCaptureActivity"
|
||||
android:screenOrientation="portrait"/>
|
||||
<activity
|
||||
android:name=".CustomCaptureActivity"
|
||||
android:screenOrientation="portrait"/>
|
||||
android:name=".CustomCaptureActivity"/>
|
||||
|
||||
<activity
|
||||
android:name=".CaptureFragmentActivity"
|
||||
|
||||
@@ -57,7 +57,10 @@ public class CustomActivity extends AppCompatActivity implements OnCaptureCallba
|
||||
mCaptureHelper = new CaptureHelper(this,surfaceView,viewfinderView);
|
||||
mCaptureHelper.onCreate();
|
||||
mCaptureHelper.vibrate(true)
|
||||
.fullScreenScan(true)//全屏扫码
|
||||
.supportVerticalCode(true)//支持扫垂直条码,建议有此需求时才使用。
|
||||
.continuousScan(isContinuousScan);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -50,7 +50,9 @@ public class CustomCaptureActivity extends CaptureActivity {
|
||||
//获取CaptureHelper,里面有扫码相关的配置设置
|
||||
getCaptureHelper().playBeep(true)//播放音效
|
||||
.vibrate(true)//震动
|
||||
.supportVerticalCode(true)//支持扫垂直条码,建议有此需求时才使用。
|
||||
.continuousScan(isContinuousScan);//是否连扫
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -222,7 +222,7 @@ public class MainActivity extends AppCompatActivity implements EasyPermissions.P
|
||||
checkCameraPermissions();
|
||||
break;
|
||||
case R.id.btn3:
|
||||
this.cls = CustomCaptureActivity.class;
|
||||
this.cls = EasyCaptureActivity.class;
|
||||
this.title = ((Button)v).getText().toString();
|
||||
checkCameraPermissions();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user