Z
Z
Zdaart55332020-09-03 18:11:19
Android
Zdaart5533, 2020-09-03 18:11:19

How to color center item in Android RecyclerView?

I am making an application where the central map should be painted over when the RecyclerView is rotated, however, no matter how I try, all the cards are painted over.
It should look like this:
5f51076a3aa7b597259958.png
Is there any way to get the position of the central map and paint it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
davidnum95, 2020-09-03
@davidnum95

As an option

B
BitNeBolt, 2020-09-10
@BitNeBolt

You can try using Viewpager 2, the transition to it will be easy, since the adapter from Recycler view is used, and you can try to set up animations according to the documentation: https://developer.android.com/training/animation/s...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question