You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
3.1 KiB
81 lines
3.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<cn.bingoogolapple.qrcode.zxing.ZXingView
|
|
android:id="@+id/zxingview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone"
|
|
app:qrcv_animTime="1000"
|
|
app:qrcv_barCodeTipText="将条码放入框内,即可自动扫描"
|
|
app:qrcv_barcodeRectHeight="120dp"
|
|
app:qrcv_borderColor="@android:color/white"
|
|
app:qrcv_borderSize="1dp"
|
|
app:qrcv_cornerColor="@color/colorPrimaryDark"
|
|
app:qrcv_cornerDisplayType="center"
|
|
app:qrcv_cornerLength="20dp"
|
|
app:qrcv_cornerSize="3dp"
|
|
app:qrcv_isAutoZoom="true"
|
|
app:qrcv_isBarcode="false"
|
|
app:qrcv_isOnlyDecodeScanBoxArea="false"
|
|
app:qrcv_isScanLineReverse="true"
|
|
app:qrcv_isShowDefaultGridScanLineDrawable="false"
|
|
app:qrcv_isShowDefaultScanLineDrawable="true"
|
|
app:qrcv_isShowLocationPoint="true"
|
|
app:qrcv_isShowTipBackground="true"
|
|
app:qrcv_isShowTipTextAsSingleLine="false"
|
|
app:qrcv_isTipTextBelowRect="false"
|
|
app:qrcv_maskColor="#33FFFFFF"
|
|
app:qrcv_qrCodeTipText="将二维码放入框内,即可自动扫描"
|
|
app:qrcv_rectWidth="300dp"
|
|
app:qrcv_scanLineColor="@color/colorPrimaryDark"
|
|
app:qrcv_scanLineMargin="0dp"
|
|
app:qrcv_scanLineSize="0.5dp"
|
|
app:qrcv_tipTextColor="@android:color/white"
|
|
app:qrcv_tipTextSize="12sp"
|
|
app:qrcv_toolbarHeight="?attr/actionBarSize"
|
|
app:qrcv_topOffset="100dp"
|
|
app:qrcv_verticalBias="-1" />
|
|
|
|
|
|
<io.legado.app.ui.widget.TitleBar
|
|
android:id="@+id/title_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:title="@string/scan_qr_code" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:padding="16dp">
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fab_flashlight"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"
|
|
android:contentDescription="@string/read_aloud"
|
|
android:src="@drawable/ic_daytime"
|
|
android:tint="@color/tv_text_default"
|
|
app:backgroundTint="@color/background_menu"
|
|
app:elevation="2dp"
|
|
app:fabSize="mini"
|
|
app:pressedTranslationZ="2dp" />
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout> |