inboxrecyclerview / me.saket.inboxrecyclerview.dimming / TintPainter

TintPainter

abstract class TintPainter

Draws a tint on InboxRecyclerView rows while it's covered by ExpandablePageLayout.

Constructors

<init>

TintPainter()

Draws a tint on InboxRecyclerView rows while it's covered by ExpandablePageLayout.

Functions

drawTint

abstract fun drawTint(canvas: Canvas): Unit

onAttachRecyclerView

abstract fun onAttachRecyclerView(recyclerView: InboxRecyclerView): Unit

onDetachRecyclerView

abstract fun onDetachRecyclerView(recyclerView: InboxRecyclerView): Unit

Companion Object Functions

completeList

fun completeList(color: Int = Color.BLACK, opacity: Float = 0.15F): TintPainter

See CompleteListTintPainter.

noOp

fun noOp(): TintPainter

uncoveredArea

fun uncoveredArea(color: Int = Color.BLACK, opacity: Float = 0.15F): TintPainter

See UncoveredAreaTintPainter.

Inheritors

UncoveredAreaTintPainter

open class UncoveredAreaTintPainter : TintPainter, PageStateChangeCallbacks

Draws a tint on InboxRecyclerView only in the area that's not covered by its page. This allows the page content to not have another background of its own, thus reducing overdraw by a level.