Removing divider after a footer in a ListView
Asked Answered
F

2

6

how can I remove the ListView divider after a ListView's footer? Using android:footerDividersEnabled="false" removes the divider after the last item of my ListView, but not after my ListView's footer...

Thanks

Footfall answered 4/11, 2011 at 15:46 Comment(0)
H
8

This worked for me, make android:layout_height="wrap_content" of ListView.

Here is my ListView xml

<ListView
        android:id="@id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:cacheColorHint="@color/transparent"
        android:divider="@color/list_divider"
        android:dividerHeight="1dp"
        android:fadeScrollbars="true"
        android:focusable="true"
        android:footerDividersEnabled="true"
        android:scrollbars="none"
        android:transcriptMode="alwaysScroll" 
        />
Hemolysis answered 8/11, 2012 at 18:46 Comment(1)
should be accepted, and seems to be epic bug from androidClaudieclaudina
O
-1

Change the size of your footer to 0px or set the visibility to GONE

Ossuary answered 5/11, 2011 at 7:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.