问题
I'm using
mList.addHeaderView(mHeader, null, false);
in Android add an (unselectable) header to my list. When the list is rendered the header isn't selectable however the list separator (the line) between the bottom of the header and first list item is missing. Does anyone know a workaround for this issue?
回答1:
Try
mList.addHeaderView(mHeader)
In you onItemClick method take in consideration the extra index.
来源:https://stackoverflow.com/questions/14367278/issue-with-addheaderview-and-missing-list-separator