xmuSistone / ViewpagerTransition

viewpager with parallax pages, together with vertical sliding (or click) and activity transition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

anitaa1990 opened this issue · comments

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?

commented

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.