优化细节

This commit is contained in:
Jenly
2020-12-28 14:16:14 +08:00
parent 1a09abd66c
commit 5726b1028b
3 changed files with 5 additions and 1 deletions

View File

@@ -34,6 +34,7 @@
android:theme="@style/CaptureTheme"/>
<activity
android:name=".CustomCaptureActivity"
android:screenOrientation="portrait"
android:theme="@style/CaptureTheme"/>
<activity

View File

@@ -70,7 +70,7 @@ public class CustomCaptureActivity extends CaptureActivity {
// .setAreaRectRatio(0.9f)//设置识别区域比例默认0.9,设置的比例最终会在预览区域裁剪基于此比例的一个矩形进行扫码识别
// .setAreaRectVerticalOffset(0)//设置识别区域垂直方向偏移量默认为0为0表示居中可以为负数
// .setAreaRectHorizontalOffset(0)//设置识别区域水平方向偏移量默认为0为0表示居中可以为负数
.setFullAreaScan(false);//设置是否全区域识别默认true
.setFullAreaScan(true);//设置是否全区域识别默认true
//获取CameraScan里面有扫码相关的配置设置。CameraScan里面包含部分支持链式调用的方法即调用返回是CameraScan本身的一些配置建议在startCamera之前调用。
getCameraScan().setPlayBeep(true)//设置是否播放音效默认为false