package com.rv.tourism.adapter;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ruiwenliu.wrapper.util.glide.GlideManager;
import com.rv.tourism.R;
import com.rv.tourism.bean.BeanPopularBrigade;
import com.rv.tourism.bean.BeanPopularBrigadeAll;

/**
 *全部热门游 adapter
 */
public class AllPopularAdapter extends BaseQuickAdapter<BeanPopularBrigadeAll.DataBeanX.DataBean, BaseViewHolder> {
    public AllPopularAdapter() {
        super(R.layout.rv_item_all_popular);
    }

    @Override
    protected void convert(BaseViewHolder helper, BeanPopularBrigadeAll.DataBeanX.DataBean item) {
        GlideManager.getInstance(mContext).loadImage(item.getImg(),  (ImageView)helper.getView(R.id.iv_icon));
         helper.setText(R.id.tv_hot,item.getName());
    }
}
