RecyclerView ViewHolder extending from same class has different view type (Two different ViewHolders have the same stable ID)
<p>There is only one <code>ViewHolder</code> class in my <code>RecyclerView</code> adapter:</p>

<pre><code>public static class PlayerItemViewHolder extends RecyclerView.ViewHolder {
    public ImageView news_image;
    public TextView news_title;
    public PlayerItemViewHolder(View view) {
        super(view);
        news_image = (ImageView) view.findViewById(R.id.news_image);
        news_title = (TextView) view.findViewById(R.id.news_title);
    }
}

@Override
public PlayerAdapter.PlayerItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View item_view = layoutInflater.inflate(R.layout.player_news_item, parent, false);
    return new PlayerItemViewHolder(item_view);
}
 @Override
public void onBindViewHolder(final PlayerAdapter.PlayerItemViewHolder viewHolder, Cursor cursor) {
    Log.d("id", viewHolder.getItemId()+"");
    Log.d("view_type", viewHolder.getItemViewType()+"");
    Log.d("class", viewHolder.getClass().toString());
}
</code></pre>

<p>When I run this code:</p>

<pre><code>08-27 15:57:03.414 19971-19971/? D/id: 0
08-27 15:57:03.414 19971-19971/? D/view_type: 1
08-27 15:57:03.414 19971-19971/? D/class: class io.github.nekotachi.easynews.ui.adapter.PlayerAdapter$PlayerItemViewHolder
08-27 15:57:03.421 19971-19971/? D/id: 0
08-27 15:57:03.421 19971-19971/? D/view_type: 2
08-27 15:57:03.421 19971-19971/? D/class: class io.github.nekotachi.easynews.ui.adapter.PlayerAdapter$PlayerItemViewHolder
</code></pre>

<p>Finally, it causes the error:</p>

<pre><code>java.lang.IllegalStateException: Two different ViewHolders have the same stable ID. Stable IDs in your adapter MUST BE unique and SHOULD NOT change.
</code></pre>

<p>In this case, I think the view type should be same because they have same class. And also, the <strong>id</strong> should be different too.</p>