title: How to design spannable gridview using recyclerview (SpannableGridLayoutManager)
body: <p>I want to design grid view like below image provided. The first item should be bigger than the rest.</p>
  
  <p><a href="https://i.stack.imgur.com/Mk0W6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mk0W6.png" alt="enter image description here"></a></p>
  
  <p>Currently I am using <code>RelativeLayout</code> with  <code>GridLayoutManager</code> check below code</p>
  
  <pre><code>RecyclerView recyclerView = (RecyclerView) 
  findViewById(R.id.recycler_view1);    
  RecyclerView.LayoutManager  recyclerViewLayoutManager = new 
  GridLayoutManager(context, 3);
  
  recyclerView.setLayoutManager(recyclerViewLayoutManager);
  recyclerView_Adapter = new RecyclerViewAdapter(context,numbers);
  recyclerView.setAdapter(recyclerView_Adapter);
  </code></pre>
  
  <p>Dummy array for demo</p>
  
  <pre><code>String[] numbers = {
          "one",
          "two",
          "three",
          "four",
          "five",
          "six",
          "seven",
          "eight",
          "nine",
          "ten",
          "eleven",
  
  };
  </code></pre>
  
  <p>Adapter Class</p>
  
  <pre><code>public class RecyclerViewAdapter extends 
  RecyclerView.Adapter&lt;RecyclerViewAdapter.ViewHolder&gt;{
  
  String[] values;
  Context context1;
  
  public RecyclerViewAdapter(Context context2,String[] values2){
  
      values = values2;
  
      context1 = context2;
  }
  
  public static class ViewHolder extends RecyclerView.ViewHolder{
  
      public TextView textView;
  
      public ViewHolder(View v){
  
          super(v);
  
          textView = (TextView) v.findViewById(R.id.textview1);
  
      }
  }
  
  @Override
  public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType){
  
      View view1 = LayoutInflater.from(context1).inflate(R.layout.recycler_view_items,parent,false);
  
      ViewHolder viewHolder1 = new ViewHolder(view1);
  
      return viewHolder1;
  }
  
  @Override
  public void onBindViewHolder(ViewHolder Vholder, int position){
  
      Vholder.textView.setText(values[position]);
  
      Vholder.textView.setBackgroundColor(Color.CYAN);
  
      Vholder.textView.setTextColor(Color.BLUE);
  
  }
  
  @Override
  public int getItemCount(){
  
      return values.length;
  } }
  </code></pre>