You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am only using smart adapter but want to get Different Header on both Sections...
So I am Passing header text in the constructor and using onCreateHeaderViewHolder to initialize the header text but in my case only first text is getting used in both the sections....
Hi @cosmicudemy,
Sorry for the late reply.
It seems to me that your problem is that headers for sections are reused, but are not updated correctly.
Make sure you override onBindHeaderViewHolder and apply appropriate string value to your TextView.
Another solution might be passing different header types when adding your sections via SectionDataManager#addSection method (example SmartAdapter implementation defines the same type variable for all instances).
If this doesn't solve your problem, please give me more details (e.g. full code of your `SmartAdapter' implementation).
Anyway, let me know if my answer was helpful.
I am only using smart adapter but want to get Different Header on both Sections...
So I am Passing header text in the constructor and using onCreateHeaderViewHolder to initialize the header text but in my case only first text is getting used in both the sections....
I am adding section as below:-
Pls let me know how can I achieve this....
The text was updated successfully, but these errors were encountered: