title: Android RecyclerView Showing only one item from 100
body: <p>i'm new to android programming, i have a issue with a recyclerview ( i'm reading an android programming book and practice ) : it's showing only one item although i passed a list of 100 items </p>
  
  <p>here's the code of the class:</p>
  
  <pre><code>package com.training.criminalintent;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.support.v7.widget.LinearLayoutManager;
  import android.support.v7.widget.RecyclerView;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.CheckBox;
  import android.widget.TextView;
  import android.widget.Toast;
  
  import java.util.List;
  
  
  public class CrimeListFragment extends Fragment {
  
      private RecyclerView mCrimeRecyclerView;
      private CrimeAdapter mAdapter;
  
      @Override
      public View onCreateView(LayoutInflater inflater,ViewGroup container,
                          Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_crime_list, container, false);
          mCrimeRecyclerView = (RecyclerView) view
                  .findViewById(R.id.crime_recycler_view);
          mCrimeRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
  
          updateUI();
  
          return view;
      }
  
      private class CrimeHolder extends RecyclerView.ViewHolder implements View.OnClickListener{
  
          private Crime mCrime;
  
          private TextView mTitleTextView;
          private TextView mDateTextView;
          private CheckBox mSolvedCheckBox;
  
          public CrimeHolder(View itemView) {
              super(itemView);
              itemView.setOnClickListener(this);
              mTitleTextView = (TextView)
                      itemView.findViewById(R.id.list_item_crime_title_text_view);
              mDateTextView = (TextView)
                      itemView.findViewById(R.id.list_item_crime_date_text_view);
              mSolvedCheckBox = (CheckBox)
                      itemView.findViewById(R.id.list_item_crime_solved_check_box);
          }
  
          public void bindCrime(Crime crime) {
              mCrime = crime;
              mTitleTextView.setText(mCrime.getTitle());
              mDateTextView.setText(mCrime.getDate().toString());
              mSolvedCheckBox.setChecked(mCrime.isSolved());
          }
  
          @Override
          public void onClick(View v) {
              Intent intent = new Intent(getActivity(), CrimeActivity.class);
              startActivity(intent);
          }
      }
  
      private class CrimeAdapter extends RecyclerView.Adapter&lt;CrimeHolder&gt; {
          private List&lt;Crime&gt; mCrimes;
          public CrimeAdapter(List&lt;Crime&gt; crimes) {
              mCrimes = crimes;
          }
          @Override
          public int getItemCount() {
              return mCrimes.size();
          }
          @Override
          public CrimeHolder onCreateViewHolder(ViewGroup parent, int viewType) {
              LayoutInflater layoutInflater = LayoutInflater.from(getActivity());
              View view = layoutInflater
                      .inflate(R.layout.list_item_crime, parent, false);
              return new CrimeHolder(view);
          }
          @Override
          public void onBindViewHolder(CrimeHolder holder, int position) {
              Crime crime = mCrimes.get(position);
              holder.bindCrime(crime);
          }
      }
  
      private void updateUI() {
          CrimeLab crimeLab = CrimeLab.get(getActivity());
          List&lt;Crime&gt; crimes = crimeLab.getCrimes();
          mAdapter = new CrimeAdapter(crimes);
          mCrimeRecyclerView.setAdapter(mAdapter);
      }
  }
  </code></pre>
  
  <p>Thanks in advance for you help, </p>