summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseRecyclerView.java
Commit message (Collapse)AuthorAgeFilesLines
* Removing flinging via UI Automatorvadimt2019-09-041-0/+10
| | | | | | | UI Automator loses events. Switching to the homemade scrolling. Bug: 138729157 Change-Id: Ib09bd5714e83eadfc65b54202867bf375e6b47c5
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-4/+4
| | | | | | | | Workspace and hotseat are drawn in rotated UI giving the impression that the device is in Portrait, even though it is in landscape Bug: 131360075 Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
* Migrating to android-xSunny Goyal2018-08-141-1/+2
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Fixing fast scroller touch handling in all-apps and widget sheetSunny Goyal2018-03-061-42/+3
| | | | | | | Also removing scrim view, instead drawing the scrim manually Bug: 73085356 Change-Id: I188c6c9b1685e22d5d97b38dd5d3e960b655c9ba
* Fix fast scrolling is not "enabled" in work tabTony Mak2018-01-161-1/+1
| | | | | | | | | | | We should just take the ViewPager.getLeft() into account, but not the recycler view itself. Test: Fast scroll in both personal and work tab. Fix: 71702218 Change-Id: Iaf508c852f197f93f8cd1d1e0c30d9f2fd7fa980
* Forwarding touch events from floating header to recyclerview.Mario Bertschler2017-12-071-4/+4
| | | | | | | | Additionally adds little sidepadding to the tabs buttons and fixes yPos calculations for the scrollbar. Bug: 69966700 Change-Id: I9d236ce7a782090f5d17931839f24b65b4ce7019
* Fixes for fast-scrollbar when using work profile tabs in all apps.Mario Bertschler2017-12-051-7/+2
| | | | | | | | | | | - do not hide scrollbar between switching tabs - full scrollbar height - show predictionrow only when fully scrolled to top Bug: 70037972 Bug: 68713881 Change-Id: Icaa434ce2726b75d22ec4ac3287ab2b0e18ce42b
* Enable work profile tab in all apps.Mario Bertschler2017-11-141-2/+6
| | | | | | | | | | This CL will bring two tabs to all apps: Personal and Work, currently only if the user has a workfile set up and behind a feature flag defaulting to disabled. Bug: 68713881 Change-Id: Ib5a558281ef3593359db3ad593ee1d0cf279f547
* Converting widget panel into a floating viewSunny Goyal2017-10-131-8/+28
| | | | | | | | | | | | | > The widget panel is only inflated when needed > Using the swipe up/down interaction for widgets tray > Removing additional view wrappers from all-apps > Widget tray is preserved across activity recreation > Launcher no longer has WIDGET state, the actual code around the states will be removed in a follow-up cl Bug: 67678570 Bug: 67585158 Change-Id: Ia29a7c33ec81e6c53cc24e2906b7022b6f41755b
* Updating fast scrollbar UI in LandscapeSunny Goyal2017-06-261-95/+21
| | | | | | | | | | | Creating a separate view for FastScrollBar and moving all the relavant logic in the view. For protrait, the touch handling is delegated by the recycler view just like before. For landscape, the dcrollbar does not overlay with recyclerView and handles the touch itself Bug: 37015359 Change-Id: Ie1981326457ba739bdf0ac8063db1065f395f133
* Updating the fast scroll bar UISunny Goyal2017-06-161-7/+0
| | | | | Bug: 37015359 Change-Id: Iec0748f04ebe9a3eef13ff759da3cab6ff28c3a1
* Adding utility method to temporarily hide scrollbarSunny Goyal2017-06-071-2/+14
| | | | | Bug: 37616877 Change-Id: I286493746c44ace8958ffd8df24317125b445cf7
* Adding support for top padding in BaseRecyclerView. The scrollbar isSunny Goyal2017-05-151-1/+3
| | | | | | | | | drawn below the top padding. Also adding callback for getting the all-apps vertical pull range so that it can be controlled by SearchUiManager Bug: 37616877 Change-Id: Ib4642073f3e92f6676caede3bddd652fda89c86f
* Moving apps search related logic into a custom layout fileSunny Goyal2017-05-081-4/+0
| | | | | | | | This will allow derivative projects to easily change the search behavior by simply overriding the xml file Bug: 37616877 Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
* Removing unused background padding from base recycler viewSunny Goyal2016-10-181-26/+6
| | | | Change-Id: I36f68a143df8f3668074b3539aa9af170a91e511
* Removing the section break UI supportSunny Goyal2016-10-131-7/+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-14/+11
| | | | | | | | | | | > 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
* Fixed header elevation shadow on rotatePeter Schiller2016-07-131-1/+1
| | | | Change-Id: I1a4b55cf9af67d93e56d84378036c0061b6e8104
* Ensuring that fast scrolling to predictions scrolls list to the topWinson2016-07-131-4/+9
| | | | | | | | | | | | - 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
* Cleaning up scrollbar logic to properly calculate stable extents.Winson2016-07-121-41/+5
| | | | | | | | | - Removing old logic which assumed that views were the same size, especially now we can have variable dividers, etc. - Simplifying old scroll position logic. - Removing unnecessary prediction icon layout (same as normal icon) Bug: 30023608 Change-Id: I39e1126fa586a76a9bdd3ff38cd6e360ac3021e6
* Consolidate all the dividers to provide same look and feelPeter Schiller2016-07-081-1/+1
| | | | | Bug: 30017936 Change-Id: I072cb116dba1df555a63f3f67b730f7f9c3a235a
* Highlighting sectioned apps on fast-scroll.Winson2015-09-281-20/+47
| | | | | | | | | | | | | | - 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-0/+7
| | | | | | | - There is no meaningful order for the app search results since they are ranked. Bug: 23759082 Change-Id: I0aa4eea68136ea3ecef2a80b20ba7b0d46f0653b
* Tweaking fast scroller to follow touch closer.Winson2015-08-201-17/+23
| | | | | | | | | | | | | | | | | | | - 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
* Refactoring fast scroller.Winson Chung2015-06-231-198/+91
| | | | | | | | | | | | | - 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
* Refactored section names to only draw when there is space.Winson Chung2015-06-161-1/+28
| | | | | | | | | - This CL removes all space for section names in both phones and tablets. And when there are no section names, the layout will automatically fully merge the sections. Bug: 20222023 Change-Id: Ic7c751d86f095e5cbd690bfd4f94bb5b00ff8ae4
* Merge "Refactoring all apps search to support external search bar." into ↵Winson Chung2015-06-151-5/+8
|\ | | | | | | ub-launcher3-burnaby
| * Refactoring all apps search to support external search bar.Winson Chung2015-06-151-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding support for an external search bar that can be used to search a container view. This adds a new interface AllAppsSearchController which manages the external search bar. Each controller will have its own search implementation which means that we no longer need a common AppSearchManager interface. - Removing elevation controller as we no longer have a builtin search bar in all apps - Refactoring container view insets so that they behave the same in all containers. - Refactoring apps view to ensure that we only update the number of columns with the available width - Cleaning up LauncherCallbacks interface Bug: 20127840 Bug: 21494973 Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
* | Fixing regression in fast scroller animation.Winson Chung2015-06-121-0/+7
|/ | | | | | | | - Fast scroller was not fading out since we were missing the getter for the fast scroller alpha (so the initial alpha to animate from was wrong). Change-Id: I2fd13eee3deb084ba37cf4a849e2378f23758391
* Consistent scrolling experience for All apps and widget trayHyunyoung Song2015-06-041-6/+1
| | | | | | b/21375339 Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
* Move fast scrolling logic to BaseRecyclerViewHyunyoung Song2015-05-291-7/+265
| | | | | | | | | | - This change has no effect on actual functionality but to make it easier for widget tray to inherit the goodness of the 1) fast scroller functionality 2) unify the scroll look and feel with the all apps view b/21375339 Change-Id: Ib859b1c3352c0b69f16549ded8f20eb82cf58ba8
* Moving all apps code into sub package.Winson Chung2015-05-221-0/+102
- Renaming resources, dimens, etc to be more consistent - Removing old AppsCustomize resources and other unused code Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a