Forum General
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to do QR scan using zxing library using half screen - Xamarin Android?

MuthuMKMuthuMK GBMember ✭✭


In Xamarin android QR scan using zxing is much easy as it requires only 3 lines of codes.
var scanner = new ZXing.Mobile.MobileBarcodeScanner();
var result = await scanner.Scan();
string qrCode = result.ToString();

But it always opens a default view with full screen even if I set it inside oncreate event or button click. What I really need is having qr scan in half screen instead of full screen. remaining othert half screen will be used to add few buttons.

If anyone knows how to do it please let me know I have spent more than 3-4 days to find the answer for this component. Also if there are any other useful library than zxing for qr scanning let me know.


Sign In or Register to comment.