A layout manager for the RecyclerView with interchangeable linear, grid, and staggered displays of views, all with configurable section headers including the sticky variety as specified in the material design docs.
And I added app:slm_headerDisplay="inline|sticky" and app:slm_isHeader="true" explicitly. Meanwhile, on method onBindViewHolder, codes below were added just like the example did:
There is my header layout:
And I added
app:slm_headerDisplay="inline|sticky"
andapp:slm_isHeader="true"
explicitly. Meanwhile, on methodonBindViewHolder
, codes below were added just like the example did:Every thing works well except for the header. So, what did I do wrong or what should I do?