Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the Camera Screen in QR Code Scanner in Android?

I am developing a QR Code Scanner in Android. My code for scanning QR Code works fine. However, I'd like to change the Camera Screen in my app.

Instead of my camera is in fullscreen mode, I'd like to make it like this:

enter image description here

Can someone knows how to do it?

like image 575
androidBoomer Avatar asked Oct 03 '22 11:10

androidBoomer


2 Answers

You can do it by adding tab host in frame layout and then set qr code camera into frame layout, by this way you can do it successfully.

You can refer following link to solve your issue.

Custom camera screen with QR code scanner

like image 153
Jayeshkumar Sojitra Avatar answered Oct 12 '22 07:10

Jayeshkumar Sojitra


You might want to add a layer on top of the camera. To do this, please read the following question and answers: Custom camera android

like image 23
Henric Avatar answered Oct 12 '22 09:10

Henric