florent37 / MaterialViewPager

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

Toolbar Color Crash When Fast Scroll Recyclerview #144

Open sajednt opened 9 years ago

sajednt commented 9 years ago

hi ,

when i set the background color and image url by setMaterialViewPagerListener , and fast scroll recyclerview in one of viewpagers , toolbar color in this way comes

screenshot_2015-08-15-18-16-56 screenshot_2015-08-15-18-16-52

this issue is very important for me ! please help me to fix this issue :(

wsw87201326 commented 9 years ago

yes,i also hava this question.when i set app:viewpager_hideToolbarAndTitle="false",the title weill not hide some time , and alse show when i slide.

krzysiek-icomapss commented 9 years ago

problem: method setColor() in MaterialVIewPagerAnimator there is animation using parameter lastPercent which is calculated from scroll offset. You can change this to 0 and the problem will be resorved but than when u will change page and mini toolbar with tab is showing than this tolbar will be with alpha 0 (transparent). So pls check lastPercent parameter in first situaton and another and than maybe after checking valu of this parameter in one situation use this parameter and in another use 0.