class InboxRecyclerView : ScrollSuppressibleRecyclerView, InternalPageCallbacks
A RecyclerView where items can expand and collapse to and from an ExpandablePageLayout.
data class ExpandedItem : Parcelable
Details of the currently expanded item. |
InboxRecyclerView(context: Context, attrs: AttributeSet)
A RecyclerView where items can expand and collapse to and from an ExpandablePageLayout. |
var expandedItem: ExpandedItem
Details about the currently expanded item. |
|
var itemExpandAnimator: ItemExpandAnimator
Controls how InboxRecyclerView items are animated when the page is moving. |
|
lateinit var page: ExpandablePageLayout |
|
var tintPainter: TintPainter
Controls how items are dimmed when the page is expanding/collapsing. |
fun canScrollProgrammatically(): Boolean |
|
fun collapse(): Unit |
|
fun dispatchTouchEvent(ev: MotionEvent?): Boolean |
|
fun draw(canvas: Canvas): Unit |
|
fun expandFromTop(immediate: Boolean = false): Unit
Expand from the top, pushing all items out of the window towards the bottom. |
|
fun expandItem(itemId: Long, immediate: Boolean = false): Unit |
|
fun onDetachedFromWindow(): Unit |
|
fun onPageAboutToCollapse(): Unit |
|
fun onPageAboutToExpand(): Unit |
|
fun onPageCollapsed(): Unit
Page is no longer visible at this point. |
|
fun onPageFullyCovered(): Unit
Called when this page has fully covered the list. This can happen in two situations: |
|
fun onPagePull(deltaY: Float): Unit
Page is being pulled. Sync the scroll with the list. |
|
fun onPageRelease(collapseEligible: Boolean): Unit
Called when this page was released after being pulled. |
|
fun onRestoreInstanceState(state: Parcelable): Unit |
|
fun onSaveInstanceState(): Parcelable |
|
fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int): Unit |
|
fun optimizeActivityBackgroundOverdraw(activity: Activity): Unit
Experimental: Reduce overdraw by 1 level by removing the Activity Window's background when the ExpandablePageLayout is expanded. No point in drawing it when it's not visible to the user. |
|
fun setAdapter(adapter: Adapter<*>?): Unit |
|
fun setExpandablePage(page: ExpandablePageLayout): Unit
Set the ExpandablePageLayout to be used with this list. The pull-to-collapse threshold is set to 85% of the standard toolbar height. fun setExpandablePage(page: ExpandablePageLayout, collapseDistanceThreshold: Int): Unit
Set the ExpandablePageLayout to be used with this list. |
|
fun swapAdapter(adapter: Adapter<*>?, removeAndRecycleExistingViews: Boolean): Unit |
open fun scrollBy(x: Int, y: Int): Unit |
|
open fun scrollTo(x: Int, y: Int): Unit |
|
open fun scrollToPosition(position: Int): Unit |
|
open fun smoothScrollBy(dx: Int, dy: Int): Unit |
|
open fun smoothScrollToPosition(position: Int): Unit |
fun View.executeOnMeasure(listener: () -> Unit): Unit
Execute a runnable when a view's dimensions get measured and is laid out on the screen. |
|
fun View.executeOnNextLayout(listener: () -> Unit): Unit
Execute a runnable when the next global layout happens for a |
|
fun View.globalVisibleRect(): RectF |