Fix some ViewPager positioning and title strip bugs

Bug 6589201 - fix some bugs with page offsets when page margins and
the pager's size change. ItemInfo#offset always holds the offset with
the margins already taken into account; don't double-count them.

Bug 6596152 - PagerTitleStrip shouldn't ask the adapter for a title
for an item index that is out of range.

Allow users to "catch" the pager properly after a fling without
resetting position to the nearest page.

More consistent/reliable tracking of scroll settling state.

Use VelocityTracker properly when handing off between
onInterceptTouchEvent/onTouchEvent

Get rid of some dodgy rounding fudges.

Change-Id: If22ab6b8b3de7dd3a8863032e10e59e5eda06f21
2 files changed
tree: 5b5f6fa7773a0f31492bce6351036e6a0d96f35c
  1. v13/
  2. v4/
  3. v7/
  4. volley/