If footer view added in ListView, then divider disappears from last item of ListView.
Even I have set android:footerDividersEnabled="true"
with ListView and my footer view is just TextTiew.
The ListView
implementation in Android never draws dividers between items that are disabled, which if you are just calling the addFooterView(View v)
method then by default your footer will be.
Instead you need to call the addFooterView(View v, Object data, boolean isSelectable)
method with isSelectable
set to true
. You can just pass null
for the data
object if you don't need it.