FiniteCarouselAdapter

open class FiniteCarouselAdapter(recyclerView: RecyclerView, carouselType: CarouselType, carouselGravity: CarouselGravity, autoWidthFixing: Boolean, imageScaleType: ImageView.ScaleType, imagePlaceholder: Drawable?) : RecyclerView.Adapter<FiniteCarouselAdapter.MyViewHolder>

Inheritors

Constructors

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

Types

Link copied to clipboard
class MyViewHolder(val binding: ViewBinding) : RecyclerView.ViewHolder

Properties

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
open fun getItem(position: Int): CarouselItem?
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
Link copied to clipboard
open fun getRealDataPosition(position: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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(p0: Boolean)