title: Android - changing textSize of TextView attached to ViewHolder in RecyclerView.Adapter
body: <p>I use GridLayoutManager in RecyclerView for three different situation (1 column, 2 columns, 3 columns), but I also need change textSize of TextView attached to ViewHolder in RecyclerView.Adapter.</p>
  
  <p>Activity code:</p>
  
  <pre><code>mLayoutManager = new GridLayoutManager(this, numberOfColumns);
  
  mRecyclerView = (RecyclerView) findViewById(R.id.grid);
  mRecyclerView.setHasFixedSize(true);
  mRecyclerView.setLayoutManager(mLayoutManager);
  
  mAdapter = new CustomGridAdapter(data);
  mRecyclerView.setAdapter(mAdapter);
  </code></pre>
  
  <p>Adapter:</p>
  
  <pre><code>@Override
  public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
      View itemView = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.grid_layout, viewGroup, false);
      return new ViewHolder(itemView);
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public class ViewHolder extends RecyclerView.ViewHolder implements OnClickListener {
  
      protected TextView vName;
      protected ImageView vImage;
      protected ImageButton vButton;
  
      protected ProgressBar vProgress;
  
      public ViewHolder(View itemLayoutView) {
          super(itemLayoutView);
          vName = (TextView) itemLayoutView.findViewById(R.id.titleTextViewGrid);
          vImage = (ImageView) itemLayoutView.findViewById(R.id.imageView);
          vButton = (ImageButton) itemLayoutView.findViewById(R.id.action_edit_grid);
  
          vProgress = (ProgressBar) itemLayoutView.findViewById(R.id.loadingProgressBar);
  
      }
  }
  </code></pre>
  
  <p>When i try:</p>
  
  <pre><code>TextView text = (TextView) mRecyclerView.findViewById(R.id.titleTextView);
  text.setTextSize(12);
  </code></pre>
  
  <p>Compiler return null reference. Any idea please?</p>