package com.rv.home.rv.module.ui.main.home.adapter;

import android.view.ViewGroup;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.ruiwenliu.wrapper.util.BaseGlideHolder;
import com.ruiwenliu.wrapper.util.glide.GlideManager;
import com.rv.home.R;

import java.util.Random;

public class RVEnthusiastAdapter extends BaseQuickAdapter<String, BaseGlideHolder> {

    public RVEnthusiastAdapter() {
        super(R.layout.rv_item_rv_enthusiast);
    }

    @Override
    protected void convert(BaseGlideHolder helper, String string) {
        helper.loadRoundImage(mContext,string,(ImageView)helper.getView(R.id.iv_activity),6);
//        GlideManager.getInstance(mContext).loadRoundImage(string,  (ImageView)helper.getView(R.id.iv_activity),20);

//        ViewGroup.LayoutParams layoutParams = helper.getView(R.id.ll_item_rv_enthusiast).getLayoutParams();
//        layoutParams.height = new Random().nextInt(200)+500;
//        helper.getView(R.id.ll_item_rv_enthusiast).setLayoutParams(layoutParams);
    }
}
