History log of /frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/PagerRecyclerViewActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
396f55a04df1b3fdfa3e7192ce14f050aed9a6d9 18-Oct-2016 Aurimas Liutikas <aurimas@google.com> Improve PagerSnapHelper flinging and documentation.

- Expose createSnapScroller method in SnapHelper to allow extending
classes to change snapping scroll speed.
- Limit the maximum duration that the scroll animation takes on flings.
This limit is now 398ms:
- 100ms for scrolling
- 298ms deceleration (100ms /.3356 <- see LinearSmoothScroller)
- Added more documentation for PagerSnapHelper class.

Test: passes the existing tests.
Change-Id: I5d0244f44aefc91b82ee4b4145e453da3c9112e6
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/PagerRecyclerViewActivity.java
849542dfdc5e83411c8b959251eb6f2a1556fc9d 09-Sep-2016 Aurimas Liutikas <aurimas@google.com> Add PagerSnapHelper to enable ViewPager-like behavior.

- Adds PagerSnapHelper.
- Adds a simple PagerRecyclerView example
- Adds snap toggle to LinearLayoutManagerActivity.

Test: Added PagerSnapHelperTest
Change-Id: Ia0f3b59b9c40fdbc4646d89feb5337d43d570916
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/PagerRecyclerViewActivity.java