Skip to content

Commit

Permalink
修改README
Browse files Browse the repository at this point in the history
  • Loading branch information
maning0303 committed Oct 16, 2020
1 parent 9fbda05 commit 223d1ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
6: 完全自定义遮罩层

## 截图:
![image](https://github.com/maning0303/MNZXingCode/blob/master/screenshots/mn_zxing_screenshot_000.jpeg)
![image](https://github.com/maning0303/MNZXingCode/blob/master/screenshots/mn_zxing_screenshot_000.jpg)
![image](https://github.com/maning0303/MNZXingCode/blob/master/screenshots/mn_zxing_screenshot_001.jpeg)

#### 默认扫描
Expand Down Expand Up @@ -243,7 +243,7 @@
1.优化代码
2.可以自定义Activity添加扫描
3.全屏扫描背景色自动透明
4.扫描文件移动到扫描框下方
4.扫描文字移动到扫描框下方

v2.1.3:
1.全屏模式去掉扫描框
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void initSize() {
//间距
margin = CommonUtils.dip2px(context, 4);
//扫描线的宽度
laserLineW = CommonUtils.dip2px(context, 3);
laserLineW = CommonUtils.dip2px(context, 4);
//四角线块
cornerLineH = CommonUtils.dip2px(context, 2);
cornerLineW = CommonUtils.dip2px(context, 14);
Expand Down Expand Up @@ -271,7 +271,11 @@ public void onDraw(Canvas canvas) {
//全屏透明
paint.setColor(Color.TRANSPARENT);
canvas.drawRect(0, 0, width, height, paint);
//扫描线的宽度
laserLineW = CommonUtils.dip2px(context, 4);
} else {
//扫描线的宽度
laserLineW = CommonUtils.dip2px(context, 2);
// 半透明背景
paint.setColor(maskColor);

Expand Down
Binary file removed screenshots/mn_zxing_screenshot_000.jpeg
Binary file not shown.
Binary file added screenshots/mn_zxing_screenshot_000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 223d1ef

Please sign in to comment.