//只需在你addHeaderView时使用该方法即可。
/**
* Parameters:
* v The view to add.
* data Data to associate with this view
* isSelectable whether the item is selectable
/
yourListView.addHeaderView(header_view ,null,false);
转载于:https://my.oschina.net/u/1028833/blog/271020