I\'m looking for an equivalent to addHeaderView for a recycler view. Basically I want to have an image with 2 buttons be added as a header to the listview. Is there a differ
It's been a few years, but just in case anyone is reading this later...
Using the above code, only the header layout is displayed as viewType is always 0.
The problem is in the constant declaration:
private static final int HEADER = 0;
private static final int OTHER = 0; <== bug
If you declare them both as zero, then you'll always get zero!