How to show header of ListView when its empty
I am developing the following screen The fourboxes next to each other are buttons. On clicking of the buttons I am changing the adapter of the listview. Since the content above the listview took up lot of space I made the whole thing as an header and added it via code. myPollsList = (ListView) findViewById(R.id.listArea); myPollsList.addHeaderView(getLayoutInflater().inflate(R.layout.profile_listview_header, null)); Now I want to show some view when the list is empty. But if I do that then the header also goes away. I am using this in a Activity and not a ListActivity. Any suggestions or