Is there a good reason for a ListView header taking up a position?
问题 I've just added a header to my ListView and I have to change a bunch of code because the header essentially becomes position 0 (Meaning the Cursor indices of my CursorAdapter do not line up with the indicies of the list. They are off by 1 now). Why? This seems a bit silly to me. The only reason I can come up with is that a developer may want to access the header. Fine. Provide something like getListView().getHeader(). 回答1: For some reason the position (from the onItemClick ) is tied up with