Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I select next item's position, it's background blinks to another color and then start evaluating from primary color to destination color #21

Open
foxtrotdev opened this issue Jun 30, 2018 · 0 comments

Comments

@foxtrotdev
Copy link

Reproduce:

  1. I have 3 elements in ViewPager
  2. I am on item's position 0
  3. I click the button which triggers selection next item's position
  4. ViewPager selects next position, calls onPageSelected
  5. ViewPager sets background color to next one (i.e red->blue)
  6. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant