summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java
Commit message (Collapse)AuthorAgeFilesLines
* Simplifying some launcher themesSunny Goyal2017-02-161-1/+2
| | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* Enables direct scrolling on the fastscroll bar.Mario Bertschler2017-01-031-21/+44
| | | | | | | | | This enables to touch anywhere in the scrollbar to directly scroll to that particular point without the need of exactly touching the thumb to start fastscrolling. This feature is currently behind a feature flag LAUNCHER3_DIRECT_SCROLL and enabled by default. Change-Id: I5b86c6acb71ff0c88476343657da221c7bdc59c3
* Removing unused background padding from base recycler viewSunny Goyal2016-10-181-8/+6
| | | | Change-Id: I36f68a143df8f3668074b3539aa9af170a91e511
* Removing the section break UI supportSunny Goyal2016-10-131-4/+0
| | | | | | | This was an exploration for an alternative UI in all apps, where we show section headers before every section. This was never released. Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016
* Simplifying fast scroller logicSunny Goyal2016-10-101-129/+141
| | | | | | | | | | | > Using a separate view for drawing the popup. This allows us to use elevation property instead of drawing the shadow as bitmap. > During the thumb animation, invalidating the full track width, instead of invalidating the track and thumb separately. > The thumb path is calculated at 0,0 and drawn using canvas.translate(). This avoids recalculating the path on every scroll. Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6
* Change NavBar to transparent blackHyunyoung Song2016-08-051-4/+5
| | | | | | b/30615471 Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
* Ensuring that fast scrolling to predictions scrolls list to the topWinson2016-07-131-4/+1
| | | | | | | | | | | | - Fixes a long standing issue with fast-scrolling to the predicted apps not quite scrolling the list to the top of the screen. - Fixes an issue where we don’t scroll exactly to the fast scroll position due to rounding - Also fixes a small issue where the thumb would not update when the fast scroll popup was no longer showing, even while dragging. Bug: 30023608 Change-Id: I6b5080c6aea521ff03dca24317f0405c02725061
* Update Launcher to use theme colors.Andrew Sapperstein2016-06-201-3/+1
| | | | | | | | | | | | | | | | | | | Instead of using hard-coded variants of colors, use the theme color that corresponds (colorAccent, colorPrimary, etc). Updated: - "Search for more apps" text - App info drop target hover color - PageIndicatorDots - All apps & widget scroll bar & scroll popup colors - All apps section text color - widget picker background color TODO: - widget picker header color BUG: 28625102 Change-Id: I74b543ff71b8caef8cd950c8183ac84c759cb4d5
* Fixes to touch handling in all apps pull up workHyunyoung Song2016-06-101-2/+1
| | | | | | | | | | b/28917826 - Fast scroll bar works even when it's at the top of the recycler view - Pull down only happens ONLY IF the thumb of the scroll bar is at top - When container is touched during sliding down animation, translation should not jump Change-Id: Ic1d9a4aa77332cc0a7582556f893053003224dd3
* Highlighting sectioned apps on fast-scroll.Winson2015-09-281-5/+6
| | | | | | | | | | | | | | - This CL fixes an old assumption we had about the height of rows in AllApps, and ensures that we account for the difference in height between the predictive icons and the normal icons. - In addition, we refactor FastBitmapDrawable to have multiple states, which it manages in drawing itself, including the press state and fast scroll focus states. And we also refactor some of the fast scroll logic in the all apps recycler view out to its own class. Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
* Disabling fast scroller when searching apps.Winson2015-09-031-1/+2
| | | | | | | - There is no meaningful order for the app search results since they are ranked. Bug: 23759082 Change-Id: I0aa4eea68136ea3ecef2a80b20ba7b0d46f0653b
* Fixing an issue where you would inadvertently start fastscrolling.Winson2015-08-271-4/+8
| | | | | | | | | | - 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
* Updating the scrollbar to make the fastscroller more visible.Winson2015-08-201-31/+64
| | | | | Bug: 20035978 Change-Id: I56a865262cd07e6af11b4374a7e6354710116dcd
* Tweaking fast scroller to follow touch closer.Winson2015-08-201-5/+33
| | | | | | | | | | | | | | | | | | | - 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
* Merge "Prevent extra animation when scrolling the recycler view." into ↵Winson Chung2015-06-251-3/+5
|\ | | | | | | ub-launcher3-burnaby
| * Prevent extra animation when scrolling the recycler view.Winson Chung2015-06-241-3/+5
| | | | | | | | Change-Id: I362b557ae63a2cbef77ebf7fac9a7a27adeabb49
* | Removing some synthetic methodsSunny Goyal2015-06-241-6/+7
|/ | | | Change-Id: I08310e21871c7d670eb384ef1e835d155540c3e8
* Refactoring fast scroller.Winson Chung2015-06-231-0/+232
- 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