Raaaaac
Raaaaac

Reputation: 126

Fading edges in RecyclerView

I have a RecyclerView in my app. It has straight sharpen edges, but I want to get faded edges when the list is bigger than the screen, that is, when there are so many items in the list that they don't fit in the screen and a scroll is generated. I've tried some attributed on the XML of the layout but nothing works. The parent layout is ConstrainLayout. Thanks.

Upvotes: 0

Views: 3153

Answers (1)

SnakeException
SnakeException

Reputation: 1186

You can use this:

android:requiresFadingEdge="horizontal|vertical"

You should see this Stack Overflow post for more information.

Upvotes: 3

Related Questions