Background tint

Saket Narayan edited this page Sep 14, 2018 · 6 revisions

InboxRecyclerView applies a soft tint on the list when its covered. When the content page is pulled, the tint is faded away to give a visual indication when the page can be released to collapse.

It’s also encouraged that apps find other creative ways of communicating this to the user. Dank, for example, uses the status bar color to indicate when the content is eligible for collapse.

By default, a black tint with a maximum opacity of 15% is applied on the list items. This can be customized by using,

recyclerView.tintPainter = TintPainter.uncoveredArea(color = Color.WHITE, opacity = 0.65F)
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.