package com.bignerdranch.android.beatbox;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class BeatBoxFragment extends Fragment {

    public static BeatBoxFragment newInstance() {
        return new BeatBoxFragment();
    }


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

        RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.fragment_beat_box_recycler_view);
        recyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 3));

        return view;
    }
}

@@ -241,24 +241,52 @@
 cyclerView;%0A
+import android.text.Layout;%0A
 import andro
@@ -305,24 +305,24 @@
 utInflater;%0A
-
 import andro
@@ -365,16 +365,46 @@
 ewGroup;
+%0Aimport android.widget.Button;
 %0A%0Apublic
@@ -555,20 +555,16 @@
 Nullable
-%0A   
  @Overri
@@ -565,20 +565,16 @@
 Override
-%0A   
  public 
@@ -936,24 +936,24 @@
 ty(), 3));%0A%0A
-
         retu
@@ -967,10 +967,865 @@
 ;%0A    %7D%0A
+%0A%0A    private class SoundHolder extends RecyclerView.ViewHolder %7B%0A%0A        private Button mButton;%0A%0A        public SoundHolder(LayoutInflater inflater, ViewGroup container) %7B%0A            super(inflater.inflate(R.layout.list_item_sound, container, false);%0A%0A            mButton = (Button) itemView.findViewById(R.id.list_item_sound_button);%0A        %7D%0A    %7D%0A%0A    private class SoundAdapter extends RecyclerView.Adapter%3CSoundHolder%3E %7B%0A%0A        @Override%0A        public SoundHolder onCreateViewHolder(ViewGroup parent, int i) %7B%0A            LayoutInflater inflater = LayoutInflater.from(getActivity());%0A            return new SoundHolder(inflater, parent);%0A        %7D%0A%0A        @Override%0A        public void onBindViewHolder(SoundHolder soundHolder, int i) %7B%0A%0A        %7D%0A%0A        @Override%0A        public int getItemCount() %7B%0A            return 0;%0A        %7D%0A    %7D%0A
 %7D%0A

Create adapter and viewholder for beatbox