xmuSistone / ViewpagerTransition

viewpager with parallax pages, together with vertical sliding (or click) and activity transition
3.04k stars 508 forks source link

Can the background color be an expanded version of the image in the card? #6

Closed anitaa1990 closed 7 years ago

anitaa1990 commented 7 years ago

Hi,

Thanks for the great library. I just had a small request/doubt on whether the following is possible. I would like to change the background of the page to reflect the image that is currently at the centre.

Please find attached screenshot for clarity. screen shot 2017-04-07 at 6 50 18 pm

Can you please guide me on how to achieve this with this library?

xmuSistone commented 7 years ago

I m sorry that it is hard to realize your reflect effects. But there still exists some other ways you may want to try. Once the fragment is created, you are able to get the position rect of the center-ImageView-card. And you can extract the partial bitmap for the area of that rect from the big background bitmap.