KingsMentor / MobileVisionBarcodeScanner

Barcode Scanner powered by Mobile Vision Api
http://belvi.xyz/posts/Mobile-Vision-Barcode-Scanner
MIT License
540 stars 109 forks source link

How can I make the fragment of quickstart guide fills the entire screen? #62

Open rulogas opened 5 years ago

rulogas commented 5 years ago

This is my layout file: `<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" 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">

<RelativeLayout android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/relative_layout_qr"
    tools:context=".QrActivityAcceso">

    <fragment
        android:name="com.google.android.gms.samples.vision.barcodereader.BarcodeCapture"
        android:id="@+id/barcode_sc"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:gvb_auto_focus="true"
        android:layout_margin="5dp"
        app:gvb_code_format="all_format"
        app:gvb_flash="false"
        app:gvb_rect_colors="@array/rect_color" />

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/floatbutton_flash"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:layout_centerInParent="true"
        android:layout_marginBottom="80dp"
        android:src="@drawable/ic_bombilla"/>

</RelativeLayout>

`

It seems that match parent attribute doesn't work.

Screenshot_20190918-094234 1

rulogas commented 5 years ago

If I remove the floating button the same thing happens

rulogas commented 5 years ago

I've tested in a HUAWEI p8 lite with Android 5.0 and it works but I need to work in a HUAWEI p20 lite with Android 8.0

rulogas commented 5 years ago

I think the problem is in the version of the Jitpack option install. I don't know if it's the same version as the one of Jcenter option