Most likely you encountered this exception

ClassCastException: LinearLayout$LayoutParams Cannot Be Cast to AbsListView$LayoutParams

because you either added a header and/or footer in the ListView component and when you removed them, you found out there was no error generated.

Explanations aside, to fix this problem just set the LayoutParams of your header or footer like this:

That should solve it.

This actually is simple. Make sure you add your footer view before you set the adapter of the ListView widget.

If you add the footer first then the ListView will not show the footer view but the object itself is there. It just does not show it.

Related Posts Plugin for WordPress, Blogger...