I have a RecyclerView
with an header on top( namely a title, a TextView
that describe the content of the RecyclerView
)
Now I combined two different ViewHolders with some logic into the Adapter to obtain this effect, but I have an unexpected result.
The recyclerView hava to have dividers, but I have a line I want to eliminate between the TextView
and the first Item of the `RecyclerView:
In other words I need to eliminate only the top divider of the RecyclerView
,
the first item, because I want that between the TextView on top and the list below there is not separation, the other items instead I expect they are separated as I obtained
This post shows how to eliminate the last row divider of a RV, but i need the first top line and I have no idea how I can adapt this snippet to my use case, or if I should create a new class.