[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);
Written by Ahmad Fauzan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#