Open ahmedalaa92 opened 6 years ago
Did you override doesSectionHaveHeader function of SectioningAdapter.
/** * @param sectionIndex index of the section in question * @return true if this section has a header */ public boolean doesSectionHaveHeader(int sectionIndex) { return false; }
the onCreateHeaderViewHolder override method is not being called however onCreateItemViewHolder is called and working fine Kindly check my adapter class below `
public class MenuRecyclerAdapter extends SectioningAdapter {
// ivh.adapterPositionTextView.setText(Integer.toString(getAdapterPositionForSectionItem(sectionIndex, itemIndex))); }
// hvh.adapterPositionTextView.setText(Integer.toString(getAdapterPositionForSectionHeader(sectionIndex)));
// if (USE_DEBUG_APPEARANCE) { // hvh.textView.setText(pad(sectionIndex * 2) + s.header); // viewHolder.itemView.setBackgroundColor(0x55FF9999); // } else { hvh.txtHeader.setText(s.header); // }
// hvh.updateSectionCollapseToggle(isSectionCollapsed(sectionIndex)); }
} `