package com.zj365.dc.adapter

import android.content.Context
import android.widget.ImageView
import android.widget.LinearLayout
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xty.base.adapter.BaseAdapter
import com.xty.common.setImage
import com.xty.network.model.HomeLayoutBean
import com.zj365.dc.R

class HomeContentLayoutAdapter (context: Context)
    : BaseAdapter<HomeLayoutBean.HomeChildBean>(R.layout.item_home_content_layout){
    override fun convert(holder: BaseViewHolder, item: HomeLayoutBean.HomeChildBean) {



        holder.getView<ImageView>(R.id.img_content).setImage(context,item.imageUrl)
        holder.setText(R.id.tv_content,item.name)
    }
}