Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class CarouselLinearLayoutManager(context: Context, orientation: Int, reverseLayout: Boolean) : LinearLayoutManager
Link copied to clipboard

Linear horizontal start snap helper.

Functions

Link copied to clipboard
fun Int.dpToPx(context: Context): Int

This method converts dp unit to equivalent pixels, depending on device density.

Link copied to clipboard

Get current snap item position of a recyclerView.

Link copied to clipboard
fun Int.pxToDp(context: Context): Int

This method converts device specific pixels to density independent pixels.

Link copied to clipboard
fun ImageView.setImage(item: CarouselItem, placeholderDrawable: Drawable? = null)
fun ImageView.setImage(item: CarouselItem, @DrawableRes placeholderDrawableResourceId: Int)

Set image to the carouse image view.

Link copied to clipboard
fun Int.spToPx(context: Context): Int

This method converts sp unit to equivalent pixels, depending on device density.