Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rulogas opened this issue Sep 18, 2019 · 3 comments
Open

Comments

@rulogas
Copy link

rulogas commented Sep 18, 2019

This is my layout file:
`

<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
Copy link
Author

rulogas commented Sep 18, 2019

If I remove the floating button the same thing happens

@rulogas
Copy link
Author

rulogas commented Sep 18, 2019

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
Copy link
Author

rulogas commented Sep 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant