You do not need to edit layouts at all.
In the ViewfinderView find the onDraw method. This is the core that draws the "scanning rectangle." You can change it the way you want.
The code that actually draws the rectangle can be found here :
inazaruk
source share