title: how to draw rectange on camera preview in android
body: <p>Actually I don't understand how to implement the rectangle on the camera preview. Everything working well, but I don't know the way to put the rectangle border like this <a href="https://www.google.com/search?q=rectangle%20frame%20on%20camera%20preview%20while%20scan%20barcode&amp;espv=2&amp;biw=1366&amp;bih=623&amp;site=webhp&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0CAYQ_AUoAWoVChMIqs3qrfCOxwIV2HOOCh3FsQBb#imgrc=_R9aGddqxcW0qM%3A" rel="nofollow">link</a>. Please anyone help me. Thanks.</p>