InfiniteCarouselAdapter

class InfiniteCarouselAdapter(recyclerView: RecyclerView, carouselType: CarouselType, carouselGravity: CarouselGravity, autoWidthFixing: Boolean, imageScaleType: ImageView.ScaleType, imagePlaceholder: Drawable?) : FiniteCarouselAdapter

Constructors

Link copied to clipboard
constructor(recyclerView: RecyclerView, carouselType: CarouselType, carouselGravity: CarouselGravity, autoWidthFixing: Boolean, imageScaleType: ImageView.ScaleType, imagePlaceholder: Drawable?)

Properties

Link copied to clipboard
open override val itemCount: Int
Link copied to clipboard

Functions

Link copied to clipboard

Append all given carousel items with the existing items.

Add a single carousel item with the existing items.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getItem(position: Int): CarouselItem?
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(position: Int): Long
Link copied to clipboard
open fun getItemViewType(position: Int): Int
Link copied to clipboard
open override fun getRealDataPosition(position: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun notifyItemChanged(position: Int)
fun notifyItemChanged(position: Int, payload: Any?)
Link copied to clipboard
fun notifyItemInserted(position: Int)
Link copied to clipboard
fun notifyItemMoved(fromPosition: Int, toPosition: Int)
Link copied to clipboard
fun notifyItemRangeChanged(positionStart: Int, itemCount: Int)
fun notifyItemRangeChanged(positionStart: Int, itemCount: Int, payload: Any?)
Link copied to clipboard
fun notifyItemRangeInserted(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRangeRemoved(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRemoved(position: Int)
Link copied to clipboard
open fun onAttachedToRecyclerView(recyclerView: RecyclerView)
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: FiniteCarouselAdapter.MyViewHolder, position: Int, @NonNull payloads: List<Any?>)
open override fun onBindViewHolder(holder: FiniteCarouselAdapter.MyViewHolder, position: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Clear previous items and add all given carousel items.

Link copied to clipboard
open fun setHasStableIds(hasStableIds: Boolean)