Hide footer view in ListView?

It seems that you are allowed to call addHeaderView() / addFooterView() after setAdapter() as long as you call one of those methods at least once before. That is a rather poor design decision from Google, so I filed an issue. Combine this with removeFooterView() and you have my solution.

+1 for the other two answers I got, they’re valid (and arguably more correct) solutions. Mine, however, is the simplest, and I like simplicity, so I’ll mark my own answer as accepted.

Leave a Comment