新增网格样式的扫描激光(类似支付宝扫码样式)
This commit is contained in:
20
README.md
20
README.md
@@ -29,9 +29,13 @@ ZXingLite for Android 是ZXing的精简版,基于ZXing库优化扫码和生成
|
||||
| labelTextColor | color |<font color=#C0C0C0>#FFC0C0C0</font>| 提示文本字体颜色 |
|
||||
| labelTextSize | dimension |14sp| 提示文本字体大小 |
|
||||
| labelTextPadding | dimension |24dp| 提示文本距离扫描区的间距 |
|
||||
| labelTextLocation | enum |bottom| 提示文本显示位置 |
|
||||
| showResultPoint | boolean | false | 是否显示合适的扫码结果点 |
|
||||
| frameWidth | dimension | | 扫码框宽度,需与frameHeight同时使用才有效 |
|
||||
| frameHeight | dimension | | 扫码框高度,需与frameWidth同时使用才有效 |
|
||||
| frameWidth | dimension | | 扫码框宽度 |
|
||||
| frameHeight | dimension | | 扫码框高度 |
|
||||
| laserStyle | enum | line | 扫描激光的样式 |
|
||||
| gridColumn | integer | 20 | 网格扫描激光列数 |
|
||||
| gridHeight | integer | 40dp | 网格扫描激光高度,为0dp时,表示动态铺满 |
|
||||
|
||||
|
||||
## 引入
|
||||
@@ -41,17 +45,17 @@ ZXingLite for Android 是ZXing的精简版,基于ZXing库优化扫码和生成
|
||||
<dependency>
|
||||
<groupId>com.king.zxing</groupId>
|
||||
<artifactId>zxing-lite</artifactId>
|
||||
<version>1.0.6</version>
|
||||
<version>1.0.7</version>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
```
|
||||
### Gradle:
|
||||
```gradle
|
||||
implementation 'com.king.zxing:zxing-lite:1.0.6'
|
||||
implementation 'com.king.zxing:zxing-lite:1.0.7'
|
||||
```
|
||||
### Lvy:
|
||||
```lvy
|
||||
<dependency org='com.king.zxing' name='zxing-lite' rev='1.0.6'>
|
||||
<dependency org='com.king.zxing' name='zxing-lite' rev='1.0.7'>
|
||||
<artifact name='$AID' ext='pom'></artifact>
|
||||
</dependency>
|
||||
```
|
||||
@@ -67,7 +71,7 @@ allprojects {
|
||||
|
||||
## 引入的库:
|
||||
```gradle
|
||||
compileOnly 'com.android.support:appcompat-v7:27.1.1'
|
||||
compileOnly 'com.android.support:appcompat-v7:28.0.0'
|
||||
api 'com.google.zxing:core:3.3.3'
|
||||
```
|
||||
|
||||
@@ -101,6 +105,10 @@ api 'com.google.zxing:core:3.3.3'
|
||||
更多使用详情,请查看[app](app)中的源码使用示例
|
||||
|
||||
## 版本记录
|
||||
#### v1.0.7:2019-4-9
|
||||
* 新增网格样式的扫描激光(类似支付宝扫码样式)
|
||||
* 升级Gradle至v4.6
|
||||
|
||||
#### v1.0.6:2019-1-16
|
||||
* 支持连续扫码
|
||||
* 支持横屏扫码(主要为了支持Pad)
|
||||
|
||||
Reference in New Issue
Block a user