2020-05-21 16:36:30 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<merge 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">
|
|
|
|
|
|
|
|
<com.journeyapps.barcodescanner.BarcodeView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/zxing_barcode_surface"
|
2020-09-30 17:56:23 +02:00
|
|
|
app:zxing_framing_rect_width="300dp"
|
2020-07-18 20:14:15 +02:00
|
|
|
app:zxing_framing_rect_height="150dp">
|
2020-05-24 21:22:36 +02:00
|
|
|
</com.journeyapps.barcodescanner.BarcodeView>
|
2020-05-21 16:36:30 +02:00
|
|
|
|
|
|
|
<com.journeyapps.barcodescanner.ViewfinderView
|
2020-05-24 21:22:36 +02:00
|
|
|
android:id="@+id/zxing_viewfinder_view"
|
2020-07-03 21:44:20 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-24 21:22:36 +02:00
|
|
|
android:layout_gravity="center"
|
2020-05-21 16:36:30 +02:00
|
|
|
app:zxing_possible_result_points="@color/zxing_custom_possible_result_points"
|
|
|
|
app:zxing_result_view="@color/zxing_custom_result_view"
|
|
|
|
app:zxing_viewfinder_laser="@color/zxing_custom_viewfinder_laser"
|
|
|
|
app:zxing_viewfinder_laser_visibility="true"
|
2020-05-24 21:22:36 +02:00
|
|
|
app:zxing_viewfinder_mask="@color/zxing_custom_viewfinder_mask" />
|
2020-05-21 16:36:30 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/zxing_status_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-12 11:09:24 +02:00
|
|
|
android:layout_gravity="center_horizontal|top"
|
2020-05-21 16:36:30 +02:00
|
|
|
android:background="@color/zxing_transparent"
|
2020-06-12 11:09:24 +02:00
|
|
|
android:fontFamily="sans-serif-black"
|
2020-05-21 16:36:30 +02:00
|
|
|
android:text="@string/zxing_msg_default_status"
|
2020-06-12 11:09:24 +02:00
|
|
|
android:textColor="@color/design_default_color_primary_dark"
|
|
|
|
tools:ignore="PrivateResource" />
|
2020-05-21 16:36:30 +02:00
|
|
|
|
2020-05-24 21:22:36 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/cancel_button"
|
2020-07-03 21:44:20 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-24 21:22:36 +02:00
|
|
|
android:layout_gravity="bottom|start"
|
2020-05-26 19:52:49 +02:00
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:accessibilityHeading="true"
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
android:clickable="false"
|
2020-05-24 21:22:36 +02:00
|
|
|
android:contentDescription="@string/button_cancel"
|
2020-05-26 19:52:49 +02:00
|
|
|
android:cropToPadding="false"
|
|
|
|
android:foregroundTint="@android:color/darker_gray"
|
2020-05-24 21:22:36 +02:00
|
|
|
android:onClick="onCancel"
|
2020-05-26 19:52:49 +02:00
|
|
|
android:src="@drawable/ic_cancel_black_24dp" />
|
2020-05-24 21:22:36 +02:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/keyboard_button"
|
2020-07-03 21:44:20 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-26 19:52:49 +02:00
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
2020-05-24 21:22:36 +02:00
|
|
|
android:contentDescription="@string/button_keyboard"
|
|
|
|
android:onClick="onKeyboard"
|
|
|
|
android:src="@drawable/ic_keyboard_black_24dp" />
|
|
|
|
|
2020-05-21 16:36:30 +02:00
|
|
|
</merge>
|