Is there a way to dynamically show/hide the header of a ListView based on a condition at runtime.
If you want to hide the footer because the listview is empty just set
listview.footer = null