// Path: app/src/main/java/com/nodlee/theogony/bean/Skin.java
// public class Skin extends RealmObject implements Serializable {
//     private int id;
//     private String name;
//     private int num;
//     private String image;
// 
//     public Skin() {
//     }
// 
//     public Skin(int id, String name, int num) {
//         this.id = id;
//         this.name = name;
//         this.num = num;
//     }
// 
//     public String getImage() {
//         return image;
//     }
// 
//     public void setImage(String image) {
//         this.image = image;
//     }
// 
//     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 int getNum() {
//         return num;
//     }
// 
//     public void setNum(int num) {
//         this.num = num;
//     }
// }


import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.RequestManager;
import com.nodlee.theogony.R;
import com.nodlee.theogony.bean.Skin;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
package com.nodlee.theogony.ui.adapter;





/**
 * Created by Vernon Lee on 15-11-27.
 */
public class SkinAdapter extends BaseAdapter<Skin, SkinAdapter.ViewHolder> {
    private RequestManager mGlide;
    private ItemClickedListener mItemClickedListener;

    public SkinAdapter(RequestManager glide, List<Skin> skinList) {
        super(skinList);
        mGlide = glide;
    }

    public void setItemClickedListener(ItemClickedListener itemClickedListener) {
        mItemClickedListener = itemClickedListener;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(LayoutInflater.from(parent.getContext())
                .inflate(R.layout.list_item_skin, parent, false));
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {
// Path: app/src/main/java/com/nodlee/theogony/bean/Skin.java
// public class Skin extends RealmObject implements Serializable {
//     private int id;
//     private String name;
//     private int num;
//     private String image;
// 
//     public Skin() {
//     }
// 
//     public Skin(int id, String name, int num) {
//         this.id = id;
//         this.name = name;
//         this.num = num;
//     }
// 
//     public String getImage() {
//         return image;
//     }
// 
//     public void setImage(String image) {
//         this.image = image;
//     }
// 
//     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 int getNum() {
//         return num;
//     }
// 
//     public void setNum(int num) {
//         this.num = num;
//     }
// }


// Path: app/src/main/java/com/nodlee/theogony/ui/adapter/SkinAdapter.java
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.RequestManager;
import com.nodlee.theogony.R;
import com.nodlee.theogony.bean.Skin;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;

package com.nodlee.theogony.ui.adapter;





/**
 * Created by Vernon Lee on 15-11-27.
 */
public class SkinAdapter extends BaseAdapter<Skin, SkinAdapter.ViewHolder> {
    private RequestManager mGlide;
    private ItemClickedListener mItemClickedListener;

    public SkinAdapter(RequestManager glide, List<Skin> skinList) {
        super(skinList);
        mGlide = glide;
    }

    public void setItemClickedListener(ItemClickedListener itemClickedListener) {
        mItemClickedListener = itemClickedListener;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(LayoutInflater.from(parent.getContext())
                .inflate(R.layout.list_item_skin, parent, false));
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        Skin skin = getItem(position);