优化细节
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
android:theme="@style/CaptureTheme"/>
|
||||
<activity
|
||||
android:name=".CustomCaptureActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/CaptureTheme"/>
|
||||
|
||||
<activity
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user