title: RecyclerView that's supposed to diplay cardViews doesn't show anything
body: <p>I have a recyclerView that must show a list of cards, but it doesn't!
  There is an arrayList of recipes get passed to the adapter to display them as cardviews, everything in the debugging seems to be alright, but it doesnt display anything on the screen.
   ViewHolder:</p>
  
  <pre><code>import android.support.v7.widget.RecyclerView;
  import android.view.View;
  import android.widget.ImageView;
  import android.widget.TextView;
  
  import com.example.nd.ameer.bake.R;
  
  public class RecipeViewHolder extends RecyclerView.ViewHolder {
  
      public TextView titleTextView;
      public ImageView coverImageView;
  
      public RecipeViewHolder(View v) {
          super(v);
          titleTextView = (TextView) v.findViewById(R.id.titleTextView);
          coverImageView = (ImageView) v.findViewById(R.id.recipeImageView);
      }
  }
  </code></pre>
  
  <p>Adapter:</p>
  
  <pre><code>import android.content.Context;
  import android.support.v7.widget.RecyclerView;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  import com.bumptech.glide.Glide;
  import com.example.nd.ameer.bake.R;
  import com.example.nd.ameer.bake.models.Recipe;
  import com.example.nd.ameer.bake.views.holders.RecipeViewHolder;
  
  import java.net.MalformedURLException;
  import java.net.URL;
  import java.util.ArrayList;
  
  public class RecipeAdapter extends 
  
  RecyclerView.Adapter&lt;RecipeViewHolder&gt; {
  
  
      ArrayList&lt;Recipe&gt; recipes = new ArrayList&lt;&gt;();
      Context context;
  
      public RecipeAdapter(ArrayList&lt;Recipe&gt; recipes, Context context) {
          this.recipes = recipes;
          this.context = context;
      }
  
      @Override
      public RecipeViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          View view = LayoutInflater.from(context).inflate(R.layout.recipe_item, parent, false);
          return new RecipeViewHolder(view);
      }
  
      @Override
      public void onBindViewHolder(RecipeViewHolder holder, int position) {
  
          holder.coverImageView.setImageResource(R.color.colorPrimaryLight);
          holder.titleTextView.setText(recipes.get(position).getName());
      }
  
      @Override
      public int getItemCount() {
          return recipes.size();
      }
  }
  </code></pre>
  
  <p>Fragment onCreateView:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      // Inflate the layout for this fragment
      rootView = inflater.inflate(R.layout.fragment_recipe, container, false);
  
      createRecipes();
  
      recyclerView = (RecyclerView) rootView.findViewById(R.id.rv_recipe);
      recyclerView.setHasFixedSize(true);
      LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
      layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
      if (recipes.size() &gt; 0 &amp; recyclerView != null) {
          recyclerView.setLayoutManager(layoutManager);
          recyclerView.setAdapter(new RecipeAdapter(recipes, getContext()));
      }
      return rootView;
  }
  </code></pre>
  
  <p>The method  createRecipes(); creates a list of recipes and then it get passed to the adapter.</p>
  
  <p><a href="https://i.stack.imgur.com/Zqhec.png" rel="nofollow noreferrer">as you can see, the recipes size is 4, so it's not the problem</a></p>