Last Updated: February 25, 2016
·
123
· azon04

[Android] Assign header to ListView before you add an Adapter

For backward compatibility, please assign header to ListView before add an Adapter. If don't, this won't work in the device with Android version 4.3.

listView.addHeaderView(header);  
listView.setAdapter(adapter);  

Visit my blog for more tips