package com.develop.main.init.ui.adapter


import androidx.appcompat.widget.AppCompatTextView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.develop.food.base.data.model.ModelsModel
import com.develop.food.base.utils.ResDimension
import com.develop.main.R

class ModesGalleryAdapter : BaseQuickAdapter<ModelsModel,BaseViewHolder>(R.layout.item_mode_card_view) {
    override fun convert(holder: BaseViewHolder, item: ModelsModel) {
        holder.getView<AppCompatTextView>(R.id.tv_mode_name).text =item.modeName
        Glide.with(context).load(item.resId).into(holder.getView(R.id.ic_icon))
    }


}