I know you should put the codes there, but why it's needed in the first place? I mean, why not using the whole screen (I suppose there's a reason and I need it to justify the behavior to my client).
Thanks!!
Main reasons are:
However, I have modified ZXing's code to make it scan with the whole screen and it's working great! But I still draw the viewfinder for the 2 reasons mentioned above.