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
?
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.
Just add android:footerDividersEnabled="false"
to your ListView description
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With