1、新建一个ViewfinderView的子类, public class YourViewFinder extends ViewfinderView { public YourViewFinder( Context context, AttributeSet attrs ) { super( context, attrs ); } @SuppressLint("DrawAllocation") @Override public void onDraw( Canvas canvas ) { // 把ViewfinderView里的内容拷贝过来,然后把画...
接下来,我们可以准备二维码图片试验一下。如果没有二维码图片,可以用草料二维码生成器在线生成一个二维码使用(如下图所示)。 6.跑一下Android程序,扫描一下二维码。(如下图所示) 我们看到扫描成功了,最后Toast出了 http://www.baidu.com 这个信息。 但这个扫描过程怎么感觉天旋地转的,一点也不流畅?.../(ㄒoㄒ...
compileSdkVersion 28 // Android 9 (API级别28) minSdkVersion 24 // Android 7.0 (API级别24)...
5Branches26Tags Folders and files Name Last commit message Last commit date Latest commit Cannot retrieve latest commit at this time. History 1,305 Commits .github/workflows Fix lint report location. Oct 25, 2021 gradle/wrapper Upgrade tooling. ...
QRCode 掃描、生成,條碼掃描 使用 implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'//二維碼掃描 和 implementation 'com.google.zxing:core:3.2.1' - Claire0505/Qrcodegen
我认为问题是一个插件。错误意味着build. gradle中没有“implementation”方法。我看了你提供的插件:http...