Skip to content

Commit

Permalink
add: update qrcode docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyQjm committed Feb 13, 2020
1 parent 708e69f commit 4216918
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion docs/qr_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


- ### 使用
- ### 基本使用

```kotlin
QuickAndroidQrCode
Expand All @@ -26,6 +26,22 @@ QuickAndroid
})
```

- ### 进阶
- **修改返回按钮的样式**
```kotlin
QuickAndroidQrCode
.create(context) // context 可以是Activity或者Fragment
.setBackIconRes(R.drawable.back) // 设置返回按钮的资源
.setBackIconSize(30f) // 设置返回按钮的大小
.setBackIconMargin(top, right, bottom, left) // 设置返回按钮的边距
.scanQrCode()
.subscribe({qrCodeResult-> // 扫码成功
}, { err-> // 扫码失败(权限被拒绝,摄像头打开失败等)
})
```



- ### 模块说明
Expand Down
18 changes: 17 additions & 1 deletion quick_android_qrcode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


- ### 使用
- ### 基本使用

```kotlin
QuickAndroidQrCode
Expand All @@ -26,6 +26,22 @@ QuickAndroid
})
```

- ### 进阶
- **修改返回按钮的样式**
```kotlin
QuickAndroidQrCode
.create(context) // context 可以是Activity或者Fragment
.setBackIconRes(R.drawable.back) // 设置返回按钮的资源
.setBackIconSize(30f) // 设置返回按钮的大小
.setBackIconMargin(top, right, bottom, left) // 设置返回按钮的边距
.scanQrCode()
.subscribe({qrCodeResult-> // 扫码成功
}, { err-> // 扫码失败(权限被拒绝,摄像头打开失败等)
})
```



- ### 模块说明
Expand Down

0 comments on commit 4216918

Please sign in to comment.