红色为加四个角 黄色为扫描线自动下滑 /* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:/
在我们是Zxing框架进行二维码扫描的时候,会发现,如今手机随着分辨率的添加.那个扫描框会越来越小,在1920*1280和1280*720还算比較正常.可是三星的几款手机note4,5.S6,等几款手机分辨率高达2560*1440,甚至一些手机高达3660的吧记不清了. 在这些手机扫描的时候,弹出的扫描Activity中间SurfaceView扫描窗体小的也是醉了, 不说了解决的方法: 1:找到启动扫描的Intent 即: Intent openCameraIntent = new Int
实现步骤如下: 1,新建一个项目,新建一个MyScrollView继承自ScrollView public class MyScrollView extends ScrollView { private OnScrollListener onScrollListener; public MyScrollView(Context context, AttributeSet attrs, int defStyle) { super(conte