K
K
kirvel2020-11-15 21:05:51
Java
kirvel, 2020-11-15 21:05:51

How to implement shading of all View except one (Android)?

5fb16da0e8e9d743416952.jpeg
I want to implement the following functionality: when clicking on a certain element of the RecyclerView, a shadow falls on all other elements (as in the attached screenshot).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2020-11-16
@zagayevskiy

This can be done by implementing ItemDecoration. onDrawOver. Draw semi-transparent shading on all but one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question