Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing divider after a footer in a ListView

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

like image 990
jul Avatar asked Nov 04 '11 15:11

jul


1 Answers

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" 
        />
like image 63
amsiddh Avatar answered Sep 22 '22 21:09

amsiddh