Closed ayubbaba closed 5 years ago
Hi Sir,
Sometimes I don't need the header in the section recycler view I am able to hide the title view using the visibility GONE but space is still occupied in the view is there any method to achieve these types
I believe you are changing view visibility in onBindHeaderViewHolder. Don't do it there. It is not efficient.
onBindHeaderViewHolder
A proper way is to call setHasHeader(false) of Section.
setHasHeader(false)
Section
Hi Sir,
Sometimes I don't need the header in the section recycler view I am able to hide the title view using the visibility GONE but space is still occupied in the view is there any method to achieve these types