Skip to content

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

@rulogas

Description

@rulogas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions