android-zxingLibrary icon indicating copy to clipboard operation
android-zxingLibrary copied to clipboard

几行代码快速集成二维码扫描功能

Results 103 android-zxingLibrary issues
Sort by recently updated
recently updated
newest added

demo中需要在raw.githubusercontent.com这个网址下载东西,网址打不开,怎么办?

使用中发现扫描的二维码被拉伸了,本来是正方形的,拉伸成长方形的,虽然不影响使用,但是显示效果不好,排查代码,发现是CameraConfigurationManager下findBestPreviewSizeValue方法出现问题,该方法目的是找到最合适的预览尺寸,修改后的代码如下 private static Point findBestPreviewSizeValue(CharSequence previewSizeValueString, Point screenResolution) { int bestX = 0; int bestY = 0; float diff = Integer.MAX_VALUE; for (String previewSize : COMMA_PATTERN.split(previewSizeValueString)) { previewSize = previewSize.trim();...

设置定制化的宽高,如果inner_width,inner_height宽或者高大于手机屏幕的宽高,就会闪退。Crop rectangle does not fit within image data,想问下,inner_width只能设置数值,想设置成wrap_content 或者match_parent 怎么设置。

![image](https://user-images.githubusercontent.com/12198830/103280416-52d94b00-4a0b-11eb-8bc2-3d6ae6595d59.png)

扫描图中二维码失败,图片中二维码在左下方,中间有文字