如何在Android中以纵向模式在Fragment中实现QR码扫描器? [英] How to implement QR code scanner in Fragment in portrait mode in android?

查看:196
本文介绍了如何在Android中以纵向模式在Fragment中实现QR码扫描器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,在这个应用程序中我必须实现QR代码扫描程序,我可以在Zxing库的帮助下轻松地在活动中实现这个东西,但问题是扫描程序应该是碎片并且碎片添加在ViewPager和我也想自定义扫描仪的视图。

I am developing an application,In this application I have to implement QR code scanner, I can achieve this thing easily in activity with the help of Zxing library but the thing is that the scanner should be in fragment and the Fragment added in ViewPager and I also want customise the view of scanner.

推荐答案

将此库用于QR码扫描程序,它是ZXING Scanner项目的修改,便于Android QR码检测。二维码扫描器

Use this Library for QR code scanner it is the Modification of ZXING Scanner project for easy Android QR-Code detection.QR Code Scanner

这篇关于如何在Android中以纵向模式在Fragment中实现QR码扫描器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆