Package com.ayvytr.baseadapter

Types

CommonAdapter
Link copied to clipboard
abstract class CommonAdapter<T> @JvmOverloads constructor(context: Context, @LayoutRes itemLayoutId: Int, list: MutableList<T>) : MultiItemTypeAdapter<T>
EmptyAdapter
Link copied to clipboard
abstract class EmptyAdapter<T>(context: Context, @LayoutRes layoutId: Int, @LayoutRes emptyLayoutId: Int) : CommonAdapter<T>

支持空布局的Adapter,可重写onBindEmptyView实现空布局点击事件;使用时要注意:空布局宽高必须是 match parent.

EmptyItemViewDelegate
Link copied to clipboard
interface EmptyItemViewDelegate<T> : ItemViewDelegate<T>
ItemViewDelegate
Link copied to clipboard
interface ItemViewDelegate<T>
ItemViewDelegateManager
Link copied to clipboard
class ItemViewDelegateManager<T>
MultiItemTypeAdapter
Link copied to clipboard
open class MultiItemTypeAdapter<T>(context: Context, mList: MutableList<T>) : RecyclerView.Adapter<ViewHolder>
ViewHolder
Link copied to clipboard
class ViewHolder(mContext: Context, convertView: View) : RecyclerView.ViewHolder

Created by Jason on 2018/8/14.