title: How to create RecyclerView with multiple view types
body: <p>From <em><a href="https://developer.android.com/preview/material/ui-widgets.html" rel="noreferrer">Create dynamic lists with RecyclerView</a></em>:</p>
  <p>When we create a <code>RecyclerView.Adapter</code> we have to specify <code>ViewHolder</code> that will bind with the adapter.</p>
  <pre><code>public class MyAdapter extends RecyclerView.Adapter&lt;MyAdapter.ViewHolder&gt; {
  
      private String[] mDataset;
  
      public MyAdapter(String[] myDataset) {
          mDataset = myDataset;
      }
  
      public static class ViewHolder extends RecyclerView.ViewHolder {
          public TextView mTextView;
          public ViewHolder(TextView v) {
              super(v);
              mTextView = v;
          }
      }
  
      @Override
      public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.some_layout, parent, false);
  
          //findViewById...
  
          ViewHolder vh = new ViewHolder(v);
          return vh;
      }
  
      @Override
      public void onBindViewHolder(ViewHolder holder, int position) {
          holder.mTextView.setText(mDataset[position]);
      }
  
      @Override
      public int getItemCount() {
          return mDataset.length;
      }
  }
  </code></pre>
  <p>Is it possible to create <code>RecyclerView</code> with multiple view types?</p>