package com.hongyegroup.cpt_newsfeed.adapter

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.guadou.cs_cptservices.YYConstants
import com.hongyegroup.cpt_newsfeed.R
import com.hongyegroup.cpt_newsfeed.bean.NewsFeedAdatperBean

/**
 * 列表适配器
 */
class NewsFeedListAdapter(list: MutableList<NewsFeedAdatperBean>)
    : BaseMultiItemQuickAdapter<NewsFeedAdatperBean, BaseViewHolder>(list), LoadMoreModule {

    private var mTvWidth: Int = 0

    init {
        addItemType(YYConstants.NEWS_FEED_TYPE_NEWS, R.layout.item_news_feed_news)
//        addItemType(YYConstants.NEWS_FEED_TYPE_BALLOT, R.layout.item_news_feed_ballot)
//        addItemType(YYConstants.NEWS_FEED_TYPE_VIDEO, R.layout.item_news_feed_video)

//        mTvWidth = ScreenUtils.getScreenWidth(context) - CommUtils.dip2px(45)
    }

    override fun convert(holder: BaseViewHolder, item: NewsFeedAdatperBean) {

    }

}