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