Search code examples
androidqr-codezxingbarcode-scanner

How to customize ZXingScannerView border


I am using barcodescanner library in my project, I need to customize the border color of ZXingScannerView.
as you can see in the below image the default color is green, how to change the border color?
is there any way to do that?

enter image description here


Solution

  • You have to find this file in your library and edit viewfinder_border.

    https://github.com/dm77/barcodescanner/blob/master/core/src/main/res/values/colors.xml