Is there any way to display the empty message and the listview header at the same time? It seems that when i set the empty view and the list is empty, the header will not be displayed.
thx Ben
Ugh, yeah, this is the wrong behavior in my opinion. But for better or worse, that's the way Android works.
I would advise creating a custom view and putting it in the table's footer instead. Keep a reference to the view in your activity, and set it's visibility to View.VISIBLE
or View.GONE
depending on what the list adapter returns in is isEmpty()
.
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