Android 12 二维码扫描框会无缘无故拉长很多
Closed this issue · 2 comments
ldlywt commented
代码设置如下:
val scanBox = mScanView.scanBox
with(scanBox) {
setBorderSize(ViewUtils.dpToPx(180, this@ParkletStationScanActivity),
ViewUtils.dpToPx(180, this@ParkletStationScanActivity))
setMaskColor(ContextCompat.getColor(this@ParkletStationScanActivity, R.color.colorQrCodeOverlay))
setScanLineColor(listOf(ContextCompat.getColor(this@ParkletStationScanActivity, R.color.colorPrimary),
ContextCompat.getColor(this@ParkletStationScanActivity, R.color.colorPrimary),
ContextCompat.getColor(this@ParkletStationScanActivity, R.color.colorPrimary)))
setCornerColor(ContextCompat.getColor(this@ParkletStationScanActivity, R.color.colorPrimary))
setScanNoticeText("")
invisibleFlashLightIcon()
**}**
希望大佬有时间解一下
ldlywt commented
devilsen commented
请查看新版本