Showing one Element

Hello, I have one problem on creating a personalized view element.
I tried for 3 times and it shows me just one element at list.
How can i Show all the elements?

public class CrimeListFragment extends Fragment {
private RecyclerView mCrimeRecyclerView;
private CrimeAdapter mAdapter;

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_crime_list, container, false);

    mCrimeRecyclerView = (RecyclerView) view.findViewById(;
    mCrimeRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
    return view;

private void updateUI(){
    CrimeLab crimeLab = CrimeLab.get(getActivity());
    List<Crime> crimes = crimeLab.getCrimes();

    mAdapter = new CrimeAdapter(crimes);

private class CrimeHolder extends RecyclerView.ViewHolder {
    private Crime mCrime;
    private TextView mTitleTextView;
    private TextView mDateTextView;
    private CheckBox mSolvedCheckbox;

    public void bindCrime(Crime crime){
        mCrime = crime;

    public CrimeHolder(View itemView) {

        mTitleTextView = (TextView) itemView.findViewById(;
        mDateTextView = (TextView) itemView.findViewById(;
        mSolvedCheckbox = (CheckBox) itemView.findViewById(;

private class CrimeAdapter extends RecyclerView.Adapter<CrimeHolder> {
    private List<Crime> mCrimes;

    public CrimeAdapter(List<Crime> crimes) {
        mCrimes = crimes;

    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);

    public void onBindViewHolder(CrimeHolder holder, int position) {
        Crime crime = mCrimes.get(position);

    public int getItemCount() {
        return mCrimes.size();


Please share your list_item_crime.xml. Please check whether you use “match_parent” instead of “wrap_content” for android:layout_height.

The problem was that the relative layout on list_item_crime was very big. I discovered this by scrolling at list and discovering that the other elements appear.