Closed yccheok closed 6 years ago
Sounds good 👍
Hi @yccheok,
I think these methods are redundant, given you can use getSectionItemViewType(position)
and check if the value is VIEW_TYPE_HEADER
or VIEW_TYPE_FOOTER
.
What do you think?
You are right. I re-check my application code again. I don't find a valid use case anymore for my previous request.
In conjunction with https://github.com/luizgrp/SectionedRecyclerViewAdapter/issues/108 , given an absolute position in RecyclerViewAdapter, we would like to know whether the absolute position is referring to header/footer of a Section.
Can we provide the following 2 functions -
isHeaderPositionInSection
andisFooterPositionInSection
?My first thought of their implementations would be