Package dev. inmo. micro_utils. android. recyclerview
Types
Abstract Standard View Holder
Link copied to clipboard
abstract class AbstractStandardViewHolder<T>(inflater: LayoutInflater, container: ViewGroup?, viewId: Int, onViewInflated: (View) -> Unit?) : AbstractViewHolder<T>
Content copied to clipboard
Abstract View Holder
Link copied to clipboard
abstract class AbstractViewHolder<in T>(view: View) : RecyclerView.ViewHolder
Content copied to clipboard
Recycler View Adapter
Link copied to clipboard
abstract class RecyclerViewAdapter<T> : RecyclerView.Adapter<AbstractViewHolder<T>>
Content copied to clipboard
State Flow Based Recycler View Adapter
Link copied to clipboard
abstract class StateFlowBasedRecyclerViewAdapter<T>(listeningScope: CoroutineScope, dataState: StateFlow<List<T>>) : RecyclerViewAdapter<T>
Content copied to clipboard
Functions
last Visible Item Flow
Link copied to clipboard
fun RecyclerView.lastVisibleItemFlow(completingScope: CoroutineScope): Flow<Int>
Content copied to clipboard
map Left Items
Link copied to clipboard
inline fun Flow<Int>.mapLeftItems(crossinline countGetter: () -> Int): Flow<Int>
Content copied to clipboard
map Require Filling
Link copied to clipboard
inline fun Flow<Int>.mapRequireFilling(minimalLeftItems: Int, crossinline countGetter: () -> Int): Flow<Int>
Content copied to clipboard
inline fun RecyclerView.mapRequireFilling(minimalLeftItems: Int, completingScope: CoroutineScope, crossinline countGetter: () -> Int): Flow<Int>
Content copied to clipboard
Recycler View Adapter
Link copied to clipboard
fun <T> RecyclerViewAdapter(data: List<T>, onCreateViewHolder: (parent: ViewGroup, viewType: Int) -> AbstractViewHolder<T>): RecyclerViewAdapter<T>
Content copied to clipboard
Properties
recyclerViewItemsDecoration
Link copied to clipboard