package com.gingersoft.gsa.cloud.main.mvp.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.gingersoft.gsa.cloud.main.R;
import com.gingersoft.gsa.cloud.main.mvp.model.bean.PaymentMethodBean;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * Created by Wyh on 2020/2/24.
 */
public class PaymentMethodColorAdapter extends BaseQuickAdapter<PaymentMethodBean, BaseViewHolder> {


    public PaymentMethodColorAdapter(@Nullable List<PaymentMethodBean> data) {
        super(R.layout.item_payment_color, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PaymentMethodBean item) {
//        helper.setBackgroundColor(R.id.circle_color, item.getColor());

        helper.setText(R.id.tv_payment_method, item.getPayMentName());
    }
}
