【技术博客文章】火山安卓二维码和条形码的使用
一、配置模块右键配置,勾选高级条码及二维码支持、火山模块
https://www.lkuaiy.com/image/editor/15989983696926.png
https://www.lkuaiy.com/image/editor/15989983754626.png
二、布局
按下图来布局
https://www.lkuaiy.com/image/editor/15989983841686.png
https://www.lkuaiy.com/image/editor/15989983913592.png
三、创建单击
按钮1上右键
https://www.lkuaiy.com/image/editor/15989984079729.png
https://www.lkuaiy.com/image/editor/15989984142479.png
四、生成码图
①二维码
https://www.lkuaiy.com/image/editor/15989984211348.png
②条形码
条形码数据必须为数字
https://www.lkuaiy.com/image/editor/15989984283477.png
五、识别二维码
识别上面生成的本地二维码
https://www.lkuaiy.com/image/editor/15989984355095.png
六、扫码识别
就是扫二维码识别
本方法只能在手机中测试
https://www.lkuaiy.com/image/editor/15989984436831.png
七、获取结果
①添加事件
https://www.lkuaiy.com/image/editor/15989984531181.png
https://www.lkuaiy.com/image/editor/15989984602486.png
https://www.lkuaiy.com/image/editor/15989984695438.png
https://www.lkuaiy.com/image/editor/15989984768532.png
②获取本地二维码图片数据
https://www.lkuaiy.com/image/editor/15989984869916.png
③获取扫码二维码数据
https://www.lkuaiy.com/image/editor/15989984969666.png
八、演示效果
https://www.lkuaiy.com/image/editor/15989985048783.gif
例子下载:下载
推广火山,义不容辞 推广火山义不容辞 推广火山义不容辞 感谢分享 这个zxing库识别率不行,稍微模糊点就扫不出了
页:
[1]