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

Space between items when scrooling #150

Open
ghost opened this issue Oct 13, 2016 · 3 comments
Open

Space between items when scrooling #150

ghost opened this issue Oct 13, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2016

Hello,

Im using the v2 version of the library (i cant update to v3 because there are incompatible and i have a lot of work with v2), i have a problem with MaterialListView and cards.

On the list there are a big space betwen items, this is an example:

screenshot_1476349323

And there is my xml code, im ussing SmallImageCard

`

<ProgressBar
    android:id="@+id/barraProgresoEmpleados"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    style="@android:style/Widget.Holo.ProgressBar.Large"
    android:layout_marginRight="5dp"
    android:layout_centerVertical="true"
    android:layout_centerHorizontal="true" />
<!--<TextView-->
    <!--android:id="@+id/sinEmpleadosTV"-->
    <!--android:layout_width="wrap_content"-->
    <!--android:layout_height="wrap_content"-->
    <!--android:layout_alignParentTop="true"-->
    <!--android:layout_centerHorizontal="true"-->
    <!--android:textColor="@color/red"-->
    <!--android:text="Sin empleados disponibles"-->
    <!--android:visibility="gone"/>-->
<com.beardedhen.androidbootstrap.BootstrapLabel
    android:id="@+id/sinEmpleadosTV"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/barraProgresoClientes"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:layout_gravity="center"
    android:visibility="gone"
    bootstrap:bootstrapBrand="danger"
    bootstrap:roundedCorners="true"
    bootstrap:bootstrapText="{fa_exclamation_circle}   Sin empleados disponibles"
    />

    <com.dexafree.materialList.view.MaterialListView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/material_listview"
        android:visibility="gone"
        android:scrollbars="vertical"
        android:dividerHeight="1dp"/>
`

Thanks you, regards!

@ns-bruno
Copy link

I'm having the same problem. Did you get any solution?

@ns-bruno
Copy link

I managed to solve my case for upgrading the gradle for new version:
compile 'com.github.dexafree:materiallist:3.2.1'

@neverthry
Copy link

in styles.xml change:
from:

<style name="MainLayout"> vertical match_parent match_parent </style>

to:

<style name="MainLayout"> vertical match_parent wrap_content </style>

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

2 participants