title: nested recyclerview inside adapter
body: <p>I am developing an android app where I have used nested RecyclerView but I am not achieving what I want.I want to achieve on this list it should show Title and below multiple images like json below how can I achieve that I am using two viewholder and it should scrool as well.
  <a href="https://gist.githubusercontent.com/u-android/41ade05b6ae1133e7e86e9dfd55f1794/raw/bab1c383b0384d1a4c889b399ad7b13ae05634fa/ios%20challenge%20json" rel="nofollow noreferrer">json structure</a></p>
  
  <p>below Adapter class
  public  class UranAdapter extends RecyclerView.Adapter {</p>
  
  <pre><code>public List&lt;Exhibit&gt; exhibitList;
  public Context context;
  
  public UranAdapter(List&lt;Exhibit&gt; uranList, Context context) {
      this.exhibitList = uranList;
      this.context = context;
  
  }
  
  @NonNull
  @Override
  public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
  
  
      View itemView;
      switch (viewType) {
          case Exhibit.TEXT_TYPE:
              itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.exhibit_list, parent, false);
              return new ViewHolder(itemView);
          case Exhibit.IMAGE_TYPE:
              itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.exhibit_list2, parent, false);
              return new ImageViewHolder(itemView);
  
      }
      return null;
  }
  
  @Override
  public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int i) {
  
  }
  
  
  @Override
  public int getItemViewType(int position) {
  
  
      return exhibitList.get(position).type;
  }
  
  public int getItemCount() {
      return exhibitList.size();
  }
  
  
  public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
      Exhibit exhibit = exhibitList.get(position);
      switch (exhibit.type) {
  
          case Exhibit.TEXT_TYPE:
              ((ViewHolder) holder).exhibition_textView.setText(exhibit.getTitle());
  
              break;
  
  
          case Exhibit.IMAGE_TYPE:
              if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
                  ((ViewHolder) holder).exhibition_imageView.setImageResource(exhibit.image);
              }
  
  
              break;
  
      }
  
  }
  
  
  
  public static class ViewHolder extends RecyclerView.ViewHolder {
  
  
      public ImageView exhibition_imageView;
      TextView exhibition_textView;
  
      public ViewHolder(View view) {
          super(view);
          exhibition_textView = (TextView) view.findViewById(R.id.exhibition_textview);
  
  
      }
  }
      public static class ImageViewHolder extends RecyclerView.ViewHolder {
  
  
          public ImageView exhibition_imageView;
          TextView exhibition_textView;
  
          public ImageViewHolder(View view) {
              super(view);
              exhibition_imageView = (ImageView) view.findViewById(R.id.exhibition_imageview);
  
  
          }
      }
  }
  </code></pre>
  
  <p>below MainActivity</p>
  
  <p>public class MainActivity extends AppCompatActivity {</p>
  
  <pre><code>public List&lt;Exhibit&gt; exhibitList = new ArrayList&lt;&gt;();
  Context context;
  RecyclerView recyclerView;
  
  
  public UranAdapter uranAdapter;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      ApiInterface apiInterface = ApiClient.getApiService();
      Call&lt;ExhibitsLoader&gt; call = apiInterface.getExhibitList();
      call.enqueue(new Callback&lt;ExhibitsLoader&gt;() {
          @Override
          public void onResponse(Call&lt;ExhibitsLoader&gt; call, Response&lt;ExhibitsLoader&gt; response) {
              exhibitList = response.body().getExhibitList();
              exhibitList.add(new Exhibit(Exhibit.IMAGE_TYPE));
              RecyclerView recyclerView = findViewById(R.id.recycler_view);
              recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
              uranAdapter = new UranAdapter(exhibitList, context); // changes
              recyclerView.setAdapter(uranAdapter);
  
          }
  
          @Override
          public void onFailure(Call&lt;ExhibitsLoader&gt; call, Throwable t) {
  
          }
      });
  
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>below image what I want
  <a href="https://i.stack.imgur.com/M4OAi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M4OAi.jpg" alt="image"></a></p>