I have a custom base adapter that will take in an arraylist of data. From here it will fill out a grid view with custom buttons. It does so perfectly and fills up the gridvi
A better approach would be using
recyclerView.getRecycledViewPool().setMaxRecycledViews(VIEW_TYPE,0);
You must note that this may reduce the performance of your RecyclerView.
You can Override the getItemViewType method as mentioned below
@Override
public int getItemViewType(int position) {
if (position == feedElements.size())
return 3;
else if (feedElements.get(position).getType() == 1)
return 1;
else
return 2;
}