Commit Graph

7 Commits

Author SHA1 Message Date
Winson
ec4845b3b1 Fixing an issue where you would inadvertently start fastscrolling.
- This would happen when you scroll near the thumb and pass through the
  area where the scrollbar was when the gesture started, and this CL
  prevents gestures that move beyond a fixed distance from the original
  touch position that is not already a fastscroll.

Bug: 23561678
Change-Id: I66226777671456a8919503dae4e92164ee10dd6d
2015-08-27 10:19:48 -07:00
Winson
6779595bec Updating the scrollbar to make the fastscroller more visible.
Bug: 20035978
Change-Id: I56a865262cd07e6af11b4374a7e6354710116dcd
2015-08-20 19:51:08 +00:00
Winson
d2eb49e4c3 Tweaking fast scroller to follow touch closer.
- Issue: The fast scroller currently does not follow the touch input
  because fundamentally, the fixed scrollbar height and the mapping
  of the scroll space to the scrollbar space is fundamentally incompatible.
- This CL changes the fast scroller to allow it to detach when the user
  fast-scrolls, then re-attaches after the user scrolls the screen and
  the current scroll position for the scrollbar picks up the thumb position.
- Since the scroll position and the fast scroller thumb is now detached,
  we can change the distribution of the fast scroll letters to make it
  independent of the rows for each section and instead uniformly distribute
  it along the scrollbar, which allows for more stability.
- There are edge cases where this fails, especially when there are few
  apps, which we can investigate further.
  
Bug: 20035978

Change-Id: I8322f862107e6f330deff692885233706564bffd
2015-08-20 19:25:48 +00:00
Winson Chung
9063bfaad0 Merge "Prevent extra animation when scrolling the recycler view." into ub-launcher3-burnaby 2015-06-25 00:12:13 +00:00
Winson Chung
4c7fc62ae2 Prevent extra animation when scrolling the recycler view.
Change-Id: I362b557ae63a2cbef77ebf7fac9a7a27adeabb49
2015-06-24 16:59:31 -07:00
Sunny Goyal
b713ad4adb Removing some synthetic methods
Change-Id: I08310e21871c7d670eb384ef1e835d155540c3e8
2015-06-24 11:46:13 -07:00
Winson Chung
b1777447d9 Refactoring fast scroller.
- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
2015-06-23 14:24:15 -07:00