N
N
newdancer2018-04-17 13:15:47
Android
newdancer, 2018-04-17 13:15:47

How to implement slanted view element in recyclerview?

How to implement slanted view element in recyclerview?
5ad5c8f185aee005753947.png
I want to implement a similar list with dynamic colors. Other than how to apply a gradient through a LinearGradient, I don’t know how to make it look like an inclination.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Chvarkov, 2018-04-18
@KuSu

as an option - write a custom view that will draw black triangles around the edges. Add the right gradient to this and you get the illusion that they are tilted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question