mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-05-16 12:52:15 -04:00
30 lines
1.4 KiB
XML
30 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Based on https://github.com/journeyapps/zxing-android-embedded/blob/0fdfbce9fb3285e985bad9971c5f7c0a7a334e7b/sample/src/main/res/layout/activity_custom_scanner.xml originally licensed under Apache 2.0 -->
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ScanActivity">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
style="?attr/toolbarStyle" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<com.journeyapps.barcodescanner.DecoratedBarcodeView
|
|
android:id="@+id/zxing_barcode_scanner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="?attr/actionBarSize"
|
|
app:zxing_scanner_layout="@layout/custom_barcode_scanner">
|
|
</com.journeyapps.barcodescanner.DecoratedBarcodeView>
|
|
</RelativeLayout>
|