Skip to content

Commit

Permalink
优化Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
maning0303 committed Sep 18, 2019
1 parent 1c6c2c5 commit 28f874f
Show file tree
Hide file tree
Showing 18 changed files with 710 additions and 225 deletions.
Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file added .idea/caches/gradle_models.ser
Binary file not shown.
6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
3:相册中选取图片识别
4:闪光灯开关
5: 相机可以调整焦距放大缩小
6: 完全自定义遮罩层,高度自定义
6: 完全自定义遮罩层

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

#### 完全自定义遮罩层
Expand Down Expand Up @@ -100,9 +101,9 @@
.setGridScanLineColumn(30)
//网格高度
.setGridScanLineHeight(150)
//高度偏移值(单位px)
.setScanFrameHeightOffect(150)
//是否全屏扫描
//高度偏移值(单位px)+向上偏移,-向下偏移
.setScanFrameHeightOffsets(150)
//是否全屏范围扫描
.setFullScreenScan(true)
//自定义遮罩
.setCustomShadeViewLayoutID(R.layout.layout_custom_view, new MNCustomViewBindCallback() {
Expand Down Expand Up @@ -167,7 +168,7 @@
## 版本记录:
v2.1.2(未发布):
1.支持设置扫描框高度偏移值
2.支持设置全屏扫描(默认只扫描扫描框内的二维码)
2.支持设置全屏范围扫描(默认只扫描扫描框内的二维码)

v2.1.1:
1.支持网格扫描线设置列数和高度
Expand Down
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'

//颜色选择器
implementation 'com.github.duanhong169:colorpicker:1.1.6'

// implementation 'com.github.maning0303:MNZXingCode:V2.1.1'
implementation project(':libraryzxing')
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
}
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".CustomScanActivity"></activity>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Loading

0 comments on commit 28f874f

Please sign in to comment.