到libXing源码中,找到ViewfinderView-drawScanLight方法,中间有如下代码
// Rect scanRect = new Rect(frame.left, scanLineTop, frame.right,
// scanLineTop + 30);
Rect scanRect = new Rect(frame.left, scanLineTop, frame.right,
scanLineTop + 10);
// ScanRect表示这个线条所在的区域,在这里对线的尺寸进行处理
canvas.drawBitmap(scanLight, null, scanRect, paint);
对这里的scanrect参数进行修改即可。