Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the bottom divider of an android ListView

I have a fixed height ListView. It has divider between list items, but it also displays dividers after the last list item.

Is there a way to not display a divider after the last item in ListView?

like image 204
mkso Avatar asked Feb 10 '11 20:02

mkso


People also ask

How to remove an item from ListView in Android?

Step 2 − Add the following code to res/layout/activity_main. xml. In the above code, we have taken name as Edit text, when user click on save button it will store the data into arraylist. Click on delete button to delete the record from listview.


1 Answers

Just add android:footerDividersEnabled="false" to your ListView description

like image 132
Alex.Semeniuk Avatar answered Sep 19 '22 21:09

Alex.Semeniuk