I am implementing ListView
with section in which I show custom section headers apart from the conventional alphabets as the header. In order for me to implement the custom SectionIndexer
correctly, I wish to understand the difference between the two methods getSectionForPosition
and getPositionForSection
.
I understand (not sure if that's correct) that getSectionForPosition
returns the alphabet we want to show in the section header.
I don't understand the other method. Also, are they similar in any sense (if at all) and in what way they differ (if they do, which I think they do :) )
Anybody having understanding about this may kindly post an answer to this. Appreciate your time going through the question.
Update:
I have gone through the documentation at this official page; I'm looking for some elaborated insight with respect to custom SectionIndex
implementation