ZxingConfig.java
2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package com.yzq.zxinglibrary.bean;
import android.support.annotation.ColorRes;
import com.huaheng.wms.R;
import java.io.Serializable;
public class ZxingConfig implements Serializable {
/*是否播放声音*/
private boolean isPlayBeep = true;
/*是否震动*/
private boolean isShake = true;
/*是否显示下方的其他功能布局*/
private boolean isShowbottomLayout = true;
/*是否显示闪光灯按钮*/
private boolean isShowFlashLight = true;
/*是否显示相册按钮*/
private boolean isShowAlbum = true;
/*是否解析条形码*/
private boolean isDecodeBarCode = true;
/*是否全屏扫描*/
private boolean isFullScreenScan = true;
/*四个角的颜色*/
@ColorRes
private int reactColor = R.color.react;
/*扫描框颜色*/
@ColorRes
private int frameLineColor = -1;
// /*扫描线颜色*/
// @ColorRes
// private int scanLineColor = R.color.scanLineColor;
//
// /*遮罩颜色*/
// @ColorRes
// private int maskViewColor = R.color.viewfinder_mask;
public int getFrameLineColor() {
return frameLineColor;
}
public void setFrameLineColor(@ColorRes int frameLineColor) {
this.frameLineColor = frameLineColor;
}
// public int getScanLineColor() {
// return scanLineColor;
// }
//
// public void setScanLineColor(@ColorRes int scanLineColor) {
// this.scanLineColor = scanLineColor;
// }
//
// public int getMaskViewColor() {
// return maskViewColor;
// }
//
// public void setMaskViewColor(@ColorRes int maskViewColor) {
// this.maskViewColor = maskViewColor;
// }
public int getReactColor() {
return reactColor;
}
public void setReactColor(@ColorRes int reactColor) {
this.reactColor = reactColor;
}
public boolean isFullScreenScan() {
return isFullScreenScan;
}
public void setFullScreenScan(boolean fullScreenScan) {
isFullScreenScan = fullScreenScan;
}
public boolean isDecodeBarCode() {
return isDecodeBarCode;
}
public void setDecodeBarCode(boolean decodeBarCode) {
isDecodeBarCode = decodeBarCode;
}
public boolean isPlayBeep() {
return isPlayBeep;
}
public void setPlayBeep(boolean playBeep) {
isPlayBeep = playBeep;
}
public boolean isShake() {
return isShake;
}
public void setShake(boolean shake) {
isShake = shake;
}
public boolean isShowbottomLayout() {
return isShowbottomLayout;
}
public void setShowbottomLayout(boolean showbottomLayout) {
isShowbottomLayout = showbottomLayout;
}
public boolean isShowFlashLight() {
return isShowFlashLight;
}
public void setShowFlashLight(boolean showFlashLight) {
isShowFlashLight = showFlashLight;
}
public boolean isShowAlbum() {
return isShowAlbum;
}
public void setShowAlbum(boolean showAlbum) {
isShowAlbum = showAlbum;
}
}