I\'m trying to use multiple ViewHolders in a RecyclerView in order to swap these views out at run time. I have created two classes which extend RecyclerView.ViewHolder:
The RecyclerView.Adapter is a parameterized class that takes in a single ViewHolder type. Your definition probably looks like:
public class RecyclerViewAdapter extends RecyclerView.Adapter
It should be:
public class RecyclerViewAdapter extends RecyclerView.Adapter
Don't forget to have the right definition for onBindViewHolder as well. You need to override getItemViewType as well.