florent37 / MaterialViewPager

A Material Design ViewPager easy to use library
https://www.fiches-plateau-moto.fr
Apache License 2.0
8.15k stars 1.48k forks source link

Feature same drawable different colors in HeaderDesign #163

Open Ashok-Varma opened 8 years ago

Ashok-Varma commented 8 years ago

right now we can give same image with different colors for tabs in MaterialViewPager.Listener getHeaderDesign method. But that refreshes that refreshes the Background Header image on every tab shift.

Instead if there is logic which checks if the HeaderImage is same as previous tab so even when we swipe tabs the Header Image view Won't refresh (i.e it still continues it animation with out any break), it will help because many real case applications use same Header Image but different colors. But now on every tab shift the BackGround Image shifts.

This can be a good feature and also adds optimization to library.

maxbaldrighi commented 8 years ago

I completely agree. That's exactly my situation!