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;

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

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