package com.yidian.common.utils

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.RecyclerView

class ViewHolderUtil {
    companion object{
        fun RecyclerView.Adapter<out RecyclerView.ViewHolder>.createItemView(parent:ViewGroup,@LayoutRes layoutId:Int):View{
            return LayoutInflater.from(parent.context).inflate(layoutId,parent,false)
        }
    }
}