// Path: AddToCardAnimation/app/src/main/java/com/technovalley21/app/addtocardanimation/model/Product.java
// public class Product {
//     private int id;
//     private String name;
//     private float price;
//     private int iconId;
// 
//     public Product(){
// 
//     }
// 
//     public Product(int id, String name, float price, int iconId){
//         this.id = id;
//         this.name = name;
//         this.price = price;
//         this.iconId = iconId;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public float getPrice() {
//         return price;
//     }
// 
//     public void setPrice(float price) {
//         this.price = price;
//     }
// 
//     public int getIconId() {
//         return iconId;
//     }
// 
//     public void setIconId(int iconId) {
//         this.iconId = iconId;
//     }
// }


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.technovalley21.app.addtocardanimation.R;
import com.technovalley21.app.addtocardanimation.model.Product;
import java.util.List;
package com.technovalley21.app.addtocardanimation.adapter;




/**
 * Created by sarker on 11/20/17.
 */

public class ProductAdapter extends RecyclerView.Adapter<ProductAdapter.ProductHolder> {

    private List<Product> mList;
    private Context mContext;

    private ProductItemActionListener actionListener;
    public ProductAdapter(Context mContext, List<Product> mList) {
        this.mContext = mContext;
        this.mList = mList;
    }

    public void setActionListener(ProductItemActionListener actionListener) {
        this.actionListener = actionListener;
    }


    @Override
    public ProductHolder onCreateViewHolder(ViewGroup parent, int viewType) {

        return new ProductHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.product_row, parent, false));
    }

    @Override
    public void onBindViewHolder(final ProductHolder holder, int position) {


// Path: AddToCardAnimation/app/src/main/java/com/technovalley21/app/addtocardanimation/model/Product.java
// public class Product {
//     private int id;
//     private String name;
//     private float price;
//     private int iconId;
// 
//     public Product(){
// 
//     }
// 
//     public Product(int id, String name, float price, int iconId){
//         this.id = id;
//         this.name = name;
//         this.price = price;
//         this.iconId = iconId;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public float getPrice() {
//         return price;
//     }
// 
//     public void setPrice(float price) {
//         this.price = price;
//     }
// 
//     public int getIconId() {
//         return iconId;
//     }
// 
//     public void setIconId(int iconId) {
//         this.iconId = iconId;
//     }
// }


// Path: AddToCardAnimation/app/src/main/java/com/technovalley21/app/addtocardanimation/adapter/ProductAdapter.java
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.technovalley21.app.addtocardanimation.R;
import com.technovalley21.app.addtocardanimation.model.Product;
import java.util.List;

package com.technovalley21.app.addtocardanimation.adapter;




/**
 * Created by sarker on 11/20/17.
 */

public class ProductAdapter extends RecyclerView.Adapter<ProductAdapter.ProductHolder> {

    private List<Product> mList;
    private Context mContext;

    private ProductItemActionListener actionListener;
    public ProductAdapter(Context mContext, List<Product> mList) {
        this.mContext = mContext;
        this.mList = mList;
    }

    public void setActionListener(ProductItemActionListener actionListener) {
        this.actionListener = actionListener;
    }


    @Override
    public ProductHolder onCreateViewHolder(ViewGroup parent, int viewType) {

        return new ProductHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.product_row, parent, false));
    }

    @Override
    public void onBindViewHolder(final ProductHolder holder, int position) {


        Product product=mList.get(position);