-
public final class QuickAdapterHelper.BuilderBuilder 通过 "向前加载"、"向后加载"、主要内容Adapter,构建 QuickAdapterHelper
-
-
Constructor Summary
Constructors Constructor Description QuickAdapterHelper.Builder(BaseQuickAdapter<?, ?> contentAdapter)Create empty Builder
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>setTrailingLoadStateAdapter(TrailingLoadStateAdapter<?> loadStateAdapter)尾部"加载更多"Adapter final <ERROR CLASS>setTrailingLoadStateAdapter(TrailingLoadStateAdapter.OnTrailingListener loadMoreListener)final <ERROR CLASS>setTrailPreloadSize(Integer size)设置“加载更多”的预加载。Preload, the number of items from the tail. final <ERROR CLASS>isTrailAutoLoadMore(Boolean enable)设置“加载更多”。是否打开自动加载更多Whether to turn on autoload more. final <ERROR CLASS>setLeadingLoadStateAdapter(LeadingLoadStateAdapter<?> loadStateAdapter)首部"加载更多"Adapter final <ERROR CLASS>setLeadingLoadStateAdapter(LeadingLoadStateAdapter.OnLeadingListener loadListener)final <ERROR CLASS>setLeadPreloadSize(Integer size)设置“向上加载”的预加载。Preload, the number of items from the leading. final <ERROR CLASS>setConfig(ConcatAdapter.Config config)设置 ConcatAdapter 的配置 final QuickAdapterHelperbuild()构建并返回 QuickAdapterHelper final QuickAdapterHelperattachTo(RecyclerView recyclerView)附加到指定的 RecyclerView 上,并返回 QuickAdapterHelper -
-
Constructor Detail
-
QuickAdapterHelper.Builder
QuickAdapterHelper.Builder(BaseQuickAdapter<?, ?> contentAdapter)
Create empty Builder
-
-
Method Detail
-
setTrailingLoadStateAdapter
final <ERROR CLASS> setTrailingLoadStateAdapter(TrailingLoadStateAdapter<?> loadStateAdapter)
尾部"加载更多"Adapter
- Parameters:
loadStateAdapter- LoadStateAdapter<*>?
-
setTrailingLoadStateAdapter
final <ERROR CLASS> setTrailingLoadStateAdapter(TrailingLoadStateAdapter.OnTrailingListener loadMoreListener)
-
setTrailPreloadSize
final <ERROR CLASS> setTrailPreloadSize(Integer size)
设置“加载更多”的预加载。
Preload, the number of items from the tail.
-
isTrailAutoLoadMore
final <ERROR CLASS> isTrailAutoLoadMore(Boolean enable)
设置“加载更多”。是否打开自动加载更多
Whether to turn on autoload more. Called when it must be initialized
-
setLeadingLoadStateAdapter
final <ERROR CLASS> setLeadingLoadStateAdapter(LeadingLoadStateAdapter<?> loadStateAdapter)
首部"加载更多"Adapter
-
setLeadingLoadStateAdapter
final <ERROR CLASS> setLeadingLoadStateAdapter(LeadingLoadStateAdapter.OnLeadingListener loadListener)
-
setLeadPreloadSize
final <ERROR CLASS> setLeadPreloadSize(Integer size)
设置“向上加载”的预加载。
Preload, the number of items from the leading.
-
setConfig
final <ERROR CLASS> setConfig(ConcatAdapter.Config config)
设置 ConcatAdapter 的配置
-
build
final QuickAdapterHelper build()
构建并返回 QuickAdapterHelper
-
attachTo
final QuickAdapterHelper attachTo(RecyclerView recyclerView)
附加到指定的 RecyclerView 上,并返回 QuickAdapterHelper
-
-
-
-