Android Question zxScannerLiveView Camera viewfinder not centered

uniplan

Active Member
Licensed User
Longtime User
Hi, I'm working with zxScannerLiveView on test app not in landscape mode.
I setted this parameters to center the activity,
Activity.AddView(zxslv,0%x, 15%y, 100%x, 55%y)
but the viewfinder (camview_scanner_frame.9.png) is not centered on every smartphone (See the image).
I want to set the activity 100% in width(x) and 50%(y) in height.
Ho I can set this image centered ?
Thank you.
 

Attachments

  • 20170316_142819.jpg
    20170316_142819.jpg
    159 KB · Views: 376

Johan Schoeman

Expert
Licensed User
Longtime User
Hi, I'm working with zxScannerLiveView on test app not in landscape mode.
I setted this parameters to center the activity,
Activity.AddView(zxslv,0%x, 15%y, 100%x, 55%y)
but the viewfinder (camview_scanner_frame.9.png) is not centered on every smartphone (See the image).
I want to set the activity 100% in width(x) and 50%(y) in height.
Ho I can set this image centered ?
Thank you.
Please upload your sample project so that I can see what the problem is. Have just tested it in Portrait mode on two different devices (KitKat and Lollipop) and the red square is dead centre on both of them when using it in Portrait mode
 
Upvote 0

Carles Escudé

Member
Licensed User
Longtime User
Hi!
I am using your great library and all goes well until I tried it on a Samsung Tab Active (SM-T365).
The autofocus does not work on that device while it works on some other Samsung tabs and LG G4 phone.

Do you know how can I solve it?

Many thanks
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
Hi!
I am using your great library and all goes well until I tried it on a Samsung Tab Active (SM-T365).
The autofocus does not work on that device while it works on some other Samsung tabs and LG G4 phone.

Do you know how can I solve it?

Many thanks
Not sure. What version of Android do you have on it? Does the native camera app on your device focuses OK when you use it.
 
Upvote 0
Top