My question is, what's the best way for actually disabling the headers functionality?
The point is that I don't always need them on the RecyclerView I'm using, so I'd like to be able to switch it off conditionally.
Is the recommended way to simply return empty / invisible Views from onCreateHeaderViewHolder? This seems to do the trick, but I wonder if there was perhaps some more elegant way of accomplishing this.
I'm testing the library. I appreciate your work.
My question is, what's the best way for actually disabling the headers functionality?
The point is that I don't always need them on the
RecyclerView
I'm using, so I'd like to be able to switch it off conditionally.Is the recommended way to simply return empty / invisible Views from
onCreateHeaderViewHolder
? This seems to do the trick, but I wonder if there was perhaps some more elegant way of accomplishing this.