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.
If the tinted area appears incorrect, try using TintPainter.completeList instead.
UncoveredAreaTintPainter(color: Int, opacity: Float)
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. |
lateinit var recyclerView: InboxRecyclerView |
|
val tintPaint: Paint |
open fun drawTint(canvas: Canvas): Unit |
|
open fun onAttachRecyclerView(recyclerView: InboxRecyclerView): Unit |
|
open fun onDetachRecyclerView(recyclerView: InboxRecyclerView): Unit |
|
open fun onPageAboutToCollapse(collapseAnimDuration: Long): Unit |
|
open fun onPageAboutToExpand(expandAnimDuration: Long): Unit |
|
open fun onPageCollapsed(): Unit |
|
open fun onPageExpanded(): Unit |
class CompleteListTintPainter : UncoveredAreaTintPainter
Draws a tint on the entire InboxRecyclerView. Unlike UncoveredAreaTintPainter, this requires the page to have its own background, but is a safer option because it does not involve any coordinate calculations. Maths is hard. |