@@ -0,0 +1,2335 @@
+package com.example.profbola.bakingtime.utils;%0A%0Aimport android.content.Context;%0Aimport android.support.annotation.NonNull;%0Aimport android.support.design.widget.Snackbar;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ImageView;%0Aimport android.widget.TextView;%0A%0Aimport com.example.profbola.bakingtime.R;%0A%0A%0A/**%0A * Created by prof.BOLA on 6/29/2017.%0A */%0A%0Apublic class RecipeAdapter extends RecyclerView.Adapter%3CRecipeAdapter.RecipeViewHolder%3E %7B%0A%0A    private final Context mContext;%0A%0A    public RecipeAdapter(@NonNull Context context) %7B%0A        mContext = context;%0A    %7D%0A%0A    @Override%0A    public RecipeViewHolder onCreateViewHolder(ViewGroup parent, int viewType) %7B%0A        View view  = LayoutInflater.from(parent.getContext())%0A                                    .inflate(R.layout.recipe_card, parent, false);%0A%0A        return new RecipeViewHolder(view);%0A    %7D%0A%0A    @Override%0A    public void onBindViewHolder(RecipeViewHolder holder, int position) %7B%0A        Recipe recipe = mRecipes.get(position);%0A        holder.bind(recipe);%0A    %7D%0A%0A    @Override%0A    public int getItemCount() %7B%0A        return 0;%0A    %7D%0A%0A    public class RecipeViewHolder extends RecyclerView.ViewHolder%0A            implements View.OnClickListener  %7B%0A%0A        public final TextView mTitleView;%0A        public final TextView mServingsView;%0A        public final ImageView mRecipeImage;%0A%0A        public RecipeViewHolder(View view) %7B%0A            super(view);%0A%0A            mTitleView = (TextView) view.findViewById(R.id.recipe_title);%0A            mRecipeImage = (ImageView) view.findViewById(R.id.recipe_image);%0A            mServingsView = (TextView) view.findViewById(R.id.recipe_servings);%0A%0A        %7D%0A%0A        @Override%0A        public void onClick(View v) %7B%0A            Snackbar.make(v, %22Congrats!!! You Just Clicked a cake!!!! Stay tuned for how to bake!!!%22, Snackbar.LENGTH_LONG)%0A                    .setAction(%22Action%22, null).show();%0A        %7D%0A%0A        void bind(Recipe recipe) %7B%0A            mTitleView.setText(recipe.title);%0A            mServingsView.setText(recipe.servings);%0A            int id = mContext.getResources().getIdentifier(recipe.image, %22drawable%22, mContext.getPackageName());%0A            mRecipeImage.setImageResource(id);%0A        %7D%0A    %7D%0A%7D%0A

Add Adapter for Recipe RecyclerView