class DynamicRecyclerViewAdapter extends RecyclerView.Adapter {

    @Override
    public final int getItemViewType(int position) {
        return sectionedItemList.get(position).isHeader() ? TITLE_TYPE : ITEM_TYPE;
    }

}