title: Calling setAdapter on Fragment (Recycler View) not working
body: <p>I tried to set the adapter on fragment, but nothing shows up.</p>
  
  <p>The object retrieves the data from API but doesn't show on the screen.</p>
  
  <p>I have already put the break point on  <code>rvItem.setAdapter(mainAdapter);</code> but nothings happen, the debug passes straight through.</p>
  
  <hr>
  
  <pre><code>public class ItemFragment extends Fragment {
  
  private MainAdapter mainAdapter;
  private ItemPresenter itemPresenter;
  private GridLayoutManager mLayoutManager;
  private List&lt;ObjectAdapter&gt; list = new ArrayList&lt;&gt;();
  
  
  private String region = "br";
  
  
  @Bind(R.id.rvItem)
  RecyclerView rvItem;
  
  public ItemFragment() {
      // Required empty public constructor
  
  }
  
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      // Inflate the layout for this fragment
      View view = inflater.inflate(R.layout.fragment_item, container, false);
      ButterKnife.bind(this, view);
      itemPresenter = new ItemPresenter();
      mLayoutManager = new GridLayoutManager(getActivity(), 4);
      rvItem.setLayoutManager(mLayoutManager);
  
      getList();
  
      return view;
  
  }
  
  private void getList() {
      itemPresenter.loadItemList(region, "all", AppConfigs.api_key, new ItemListListener() {
          @Override
          public void onRequestStarted() {
          }
  
          @Override
          public void onRequestFinished() {
  
          }
  
          @Override
          public void onError(Throwable error) {
  
          }
  
          @Override
          public void onItemListLoad(List&lt;ItemDto&gt; itemList) {
  
              displayItemList(ObjectAdapter.convertItemToObjetct(itemList));
  
  
          }
      });
  
  }
  
  public void displayItemList(List&lt;ObjectAdapter&gt; itemList) {
      list = itemList;
  
      mainAdapter = new MainAdapter(getActivity(), list, new MainAdapter.OnObjectClickListener() {
          @Override
          public void OnObjectClickListener(ObjectAdapter objectAdapter) {
              Toast.makeText(getActivity(), "Object Adapter" + objectAdapter.Id, Toast.LENGTH_SHORT).show();
          }
      });
  
      rvItem.setAdapter(mainAdapter);
      mainAdapter.notifyDataSetChanged();
  
  }
  
  }
  </code></pre>
  
  <p>Adapter:</p>
  
  <pre><code>public class MainAdapter extends                    
  RecyclerView.Adapter&lt;MainAdapter.MainAdapterViewHolder&gt;  {
  
  public List&lt;ObjectAdapter&gt; mObjecterList;
  private final OnObjectClickListener listener;
  private Context mContext;
  
  
  public interface OnObjectClickListener {
      void OnObjectClickListener(ObjectAdapter objectAdapter);
  }
  
  
  public MainAdapter(Context context, List&lt;ObjectAdapter&gt; objectAdapterList, OnObjectClickListener listener) {
      this.mObjecterList = objectAdapterList;
      this.listener = listener;
      this.mContext = context;
  }
  
  @Override
  public MainAdapter.MainAdapterViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.activity_main_adapter, parent, false);
  
      return new MainAdapterViewHolder(view);
  }
  
  @Override
  public void onBindViewHolder(MainAdapter.MainAdapterViewHolder holder, int position) {
      ObjectAdapter ob = mObjecterList.get(position);
  
      holder.tvNameText.setText(ob.Name);
      holder.bind(mObjecterList.get(position), listener);
  
      String url = "";
      switch (ob.Type){
  
          case CHAMPION: url = String.format(AppConfigs.portraitChampion, ob.Portrait);
              break;
          case SPELL: url = String.format(AppConfigs.portraitSpell, ob.Portrait);
              break;
          case ITEM: url = String.format(AppConfigs.portraitItem, ob.Portrait);
              break;
      }
  
      Picasso.with(mContext).load(url).into(holder.ivRetrato);
  
  }
  
  @Override
  public int getItemCount() {
      return this.mObjecterList.size();
  }
  
  public static class MainAdapterViewHolder extends RecyclerView.ViewHolder {
  
      public TextView tvNameText;
      public ImageView ivRetrato;
  
      public MainAdapterViewHolder(View itemView) {
          super(itemView);
  
          this.tvNameText = (TextView) itemView.findViewById(R.id.tvNameText);
          this.ivRetrato = (ImageView) itemView.findViewById(R.id.ivImagePortrait);
      }
  
      public void bind(final ObjectAdapter  objectAdapterListItem, final OnObjectClickListener listener) {
          itemView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  listener.OnObjectClickListener(objectAdapterListItem);
              }
          });
      }
  }
  }
  </code></pre>