<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".QrCodeActivity"
android:orientation="vertical">
<com.journeyapps.barcodescanner.DecoratedBarcodeView
android:id="@+id/decoratedBarcodeView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:zxing_framing_rect_height="250dp"
android:zxing_framing_rect_width="250dp"
android:zxing_preview_scaling_strategy="fitXY"
android:zxing_scanner_layout="@layout/layout_zxing"
android:zxing_use_texture_view="true"
/>
这个问题的原因是什么?
我引入的依赖'com.journeyapps:zxing-android-embedded:3.3.0'