Scandit / datacapture-android-samples

27 stars 22 forks source link

How to customize preview in android while scanning bar code #9

Closed Yousaf128 closed 2 years ago

Yousaf128 commented 2 years ago

How to customize preview of scanning screen Top half screen show camera preview for scanning bar code and bottom of half screen show bar code scanning result.

ScanditSupport commented 2 years ago

Hi @Yousaf128,

We have a sample that mirrors the functionality you desire, specifically, the 'splitview activity' of the BarcodeCaptureViewsSample.

Essentially you can just resize the DataCaptureView's container according to your needs: https://github.com/Scandit/datacapture-android-samples/blob/master/BarcodeCaptureViewsSample/src/main/res/layout/activity_split_view.xml

In case you have more detailed questions, please feel free to reach out to us directly: Submit a request – Frequently Asked Questions (FAQ)