Android-Material-Design-for-pre-Lollipop
Android-Material-Design-for-pre-Lollipop copied to clipboard
When I select next item's position, it's background blinks to another color and then start evaluating from primary color to destination color
Reproduce:
- I have 3 elements in ViewPager
- I am on item's position 0
- I click the button which triggers selection next item's position
- ViewPager selects next position, calls onPageSelected
- ViewPager sets background color to next one (i.e red->blue)
- ViewPager starts evaluating color from item's position 0 to item's position 1 (i.e from red into blue)
Look at points 5. and 6. between these operations we can detect blink.
Solution: Remove line: 129-139 from viewPager's listener: PagerActivity.java