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

HorizontalPager changes #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

HorizontalPager changes #7

wants to merge 4 commits into from

Conversation

shilgapira
Copy link

I've ran into some of the same issues other people have already described before here.

This pull request contains the changes I made to my copy of the file:

  1. Added the fix posted by xsace to the problem with ListViews,
  2. Added a testcase activity that demonstrates the problem (and how it goes away when the above fix is applied).
  3. Added the code posted by Accused187 to persist the current page through orientation changes.
  4. Fixed a couple of issues with the existing examples that prevented them from persisting the state properly.
  5. Use a DecelerateInterpolator when animating the HorizontalPager so that long movements (e.g. when animating a transition between two pages that are not adjacent) look more natural.

… contains an HorizontalPager with three ListViews. This demonstrates the problem where the HorizontalPager gets locked into vertical scrolling until it's tapped.
… ListViews as child views (added code by xsace)
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

Successfully merging this pull request may close these issues.

None yet

1 participant