inboxrecyclerview / me.saket.inboxrecyclerview.animation / ItemExpandAnimator

ItemExpandAnimator

abstract class ItemExpandAnimator

Controls how InboxRecyclerView items are animated when its page is moving. To create a custom animator, extend this and override onPageMove.

Constructors

<init>

ItemExpandAnimator()

Controls how InboxRecyclerView items are animated when its page is moving. To create a custom animator, extend this and override onPageMove.

Functions

onAttachRecyclerView

fun onAttachRecyclerView(recyclerView: InboxRecyclerView, page: ExpandablePageLayout): Unit

onDetachRecyclerView

fun onDetachRecyclerView(): Unit

onPageMove

abstract fun onPageMove(recyclerView: InboxRecyclerView, page: ExpandablePageLayout): Unit

Called when the page changes its position and/or dimensions. This can happen when the page is expanding, collapsing or being pulled vertically.

Companion Object Functions

split

fun split(): SplitExpandAnimator

See SplitExpandAnimator.

Inheritors

SplitExpandAnimator

open class SplitExpandAnimator : ItemExpandAnimator

When the page is expanding, this pushes all RecyclerView items out of the Window. The expanding item is pushed to align with the top edge, while the items above it are pushed out of the window towards the top and the rest towards the bottom.