5

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?

androidBoomer
  • 3,357
  • 6
  • 32
  • 42
  • 1
    I'm using a similar view and helped me with creating a foreground image with a transparent rect in the middle. – AlexVogel Jul 22 '13 at 09:20

2 Answers2

2

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

halfer
  • 19,824
  • 17
  • 99
  • 186
Henric
  • 782
  • 1
  • 9
  • 23
2

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

halfer
  • 19,824
  • 17
  • 99
  • 186
Jayeshkumar Sojitra
  • 2,501
  • 4
  • 31
  • 44