Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
ailiwean committed Aug 16, 2020
1 parent 69e9d8a commit 0e3a3e9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@


```
implementation 'com.github.ailiwean:NBZxing:0.0.21'
//若需要使用灰度算法增强库,再次添加以下依赖 //纯java版超轻量
implementation 'com.github.ailiwean:NBZxing:0.0.21'
//若需要使用灰度算法增强库,再次添加以下依赖//纯java超轻量
implementation 'com.github.ailiwean:NBZxing-Scale:0.0.1'
```
**注意:库中已经包含zxing源码无需再次依赖**
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
// implementation 'com.github.ailiwean:NBZxing:0.0.7'
// api 'com.google.zxing:core:3.3.3'
// implementation 'com.github.ailiwean:NBZxing:0.0.24'
// implementation 'com.github.ailiwean:NBZxing:0.0.21'
// implementation 'me.devilsen:czxing:1.0.11'

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.android.cameraview;

import android.os.Handler;
import android.util.Log;
import android.view.Surface;
import android.view.SurfaceHolder;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ abstract class ZxingCameraView @JvmOverloads constructor(context: Context, attri
fun initConfig() {
ableCollect?.loadAble()
scan_bar.startAnim()
qr_loc.visibility = View.GONE
qr_loc.visibility = View.INVISIBLE
initScanType()
handleZX.init()
VibrateHelper.playInit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ protected void onDetachedFromWindow() {

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// if (isInEditMode()) {
// super.onMeasure(widthMeasureSpec, heightMeasureSpec);
// return;
// }
if (isInEditMode()) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
return;
}
// Handle android:adjustViewBounds
// if (mAdjustViewBounds) {
// if (!isCameraOpened()) {
Expand Down

0 comments on commit 0e3a3e9

Please sign in to comment.