summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/shortcuts/DeepShortcutView.java
Commit message (Collapse)AuthorAgeFilesLines
* Removing ShortcutInfoCompat and directly using ShortcutInfoSunny Goyal2019-04-221-3/+4
| | | | Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
* ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal2019-04-161-9/+7
| | | | | | Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
* Remove unused code from DeepShortcutView.Zak Cohen2018-10-261-10/+0
| | | | | Change-Id: I4df34c71912bdd91c3e5ef37ae4af7b185fd369a Tested: manual on pixel 3
* Exposing some private methods to easily customize widgets popupSunny Goyal2018-08-021-0/+4
| | | | Change-Id: Ie7bd879200b1f14d472ff03fd64429930651a39f
* Exposing some private methods to easily customize arrow popupSunny Goyal2018-07-111-1/+1
| | | | Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
* Moving click and long click handling for items from launcher to separate classSunny Goyal2018-03-081-1/+2
| | | | Change-Id: I1d12862205f7fa7f3671ff351e66dba58bb430e2
* Simplifying app icon popupSunny Goyal2017-11-151-1/+8
| | | | | | | | | > Using a single linearLayout instead of multiple nested views > Using clipToOutline for rounded corners instead of using canvas.saveLayer > Removing nested view elevations and overdraw > Using LayoutTransition for animating layout changes, instead of manually creating animators Change-Id: I8e57092f52ca5a032a2756594fdd39788acc5a0d
* Add support for system shortcuts in popup containerTony Wickham2017-03-301-3/+4
| | | | | | | | | | | | - Currently the system shortcuts are just widgets and app info - As shortcuts, they live in ShortcutsItemView - They are populated either as icons only (if there are deep shortcuts) or as icons + text - Widgets are disabled until binding them is complete (we request for them to be bound on long-press now). We should revisit this. Bug: 34940468 Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
* Merge deep shortcuts in rounded rectTony Wickham2017-03-011-4/+20
| | | | | | | | | | | | | | | | | - DeepShortcutViews are added to ShortcutsItemView, which is in PopupContainerWithArrow - Moved some shortcut-specific logic to ShortcutsItemView (namely, touch/long-click handling for draggin shortcuts) - Moved round-rect clipping to PopupItemView - Removed collapseToIcon() logic, including PillWidthRevealOutlineProvider, which was only used for that purpose. It isn't necessary now that the deep shortcuts have no background themselves. - Replaced focus pill drawable with ripple effect on shortcuts and notification view. Bug: 35766387 Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
* Refactor DeepShortcutsContainer to PopupContainerWithArrowTony Wickham2017-01-251-140/+5
| | | | | | | | | | | - Also added PopupItemView, which takes animation logic from DeepShortcutView, and which DeepShortcutView now extends. - Renamed ShortcutFilter to PopupPopulator, which has support for new item types (not yet used). Also moved populating logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator. Bug: 32410600 Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
* Moving icon generation out of ShortcutInfo constructor so that itSunny Goyal2017-01-181-14/+9
| | | | | | can be created on the UI thread Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed
* Enforcing background thread when accessing iconCacheDb.Sunny Goyal2017-01-101-2/+10
| | | | | | | | > Moving any icon cache access to background thread > Updating Apps list to avoid loading icons for ignored apps Bug: 21325319 Change-Id: Id72755100f1176ccfcc99249c5e02873cc249a13
* Ensuring that ShortcutInfo always has an iconSunny Goyal2016-12-131-4/+1
| | | | | | | | | > Making iconBitmap public instead of a getter (similar to AppInfo) > Removing getIcon() which can lead to IO on UI thread > Removing updateIcon and handling the update at the caller Bug: 21325319 Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
* Moving the shortcut application logic to the DeepShortcutView.Sunny Goyal2016-08-121-1/+32
| | | | | | | | This makes the logic for accessing various properties consistant and and ties it to the UI of the DeepShortcutView. Bug: 30817556 Change-Id: I09536b9f91b2a9969fcc286f83dd2b17e16cd9ce
* Start shortcuts close animation where open left off.Tony Wickham2016-08-021-8/+60
| | | | | | | | | | | - Before we always started the close animation at 0 instead of the previous open progress, which looked janky. - Shortened the animations' durations and start delays to account for the fact that the open animation was only partially finished when the close animation started. Bug: 30465231 Change-Id: I958ee5f4543dbf1185f3d0229c55fc1b51929655
* Launcher shortcuts animations update.Sunny Goyal2016-07-271-53/+100
| | | | | | | | | | | > The shortcut container closes with an animation > When opening/closing the animation only the icon scales and not the title and drag handle > When dragging the icon, it starts from the original icon position and moves under the user finger. The container grows to follow the drag view. Bug: 28980830 Change-Id: Ic0353c30b682d1f018cbf4d62e8a6e8e7d7d4664
* Add arrow view to deep shortcuts container.Tony2016-07-261-6/+2
| | | | | | | | | - We create a trangular path, which we use as the view's outline (for the shadow) and as its PathShape background. - We scale up the arrow as the container opens. Bug: 28980830 Change-Id: I71e566552f063dfdb69067bb7e3cee659988f934
* Remove hover-to-launch gesture for shortcuts.Tony Wickham2016-07-261-70/+0
| | | | | | | | | - You can no longer long press and drag over shortcuts before lifting to launch them. - Dragging in any direction past a threshold enters spring-loaded mode. Bug: 28980830 Change-Id: I36bfc379cc983017456a3ef0314faa1ac9691c36
* Update shortcut animations.Tony Wickham2016-07-191-12/+97
| | | | | | | | | | | - Open animation: shortcuts reveal using modified circular reveal (so that it reveals in the pill shape instead of a circle); slight translation away from the original icon; scale icon and text. - Hover animation: scale the shortcut pill and translate others away. Bug: 28980830 Bug: 30127368 Change-Id: I8ed05c7a082f2c2a3f6c663da7259f6cd33e394f
* Long-press on an app to reveal its shortcuts.Tony Wickham2016-06-291-0/+113
- Add ShortcutsContainerListener to icons on workspace, folders, and all apps. This handles long-press and forwards following touches to the DeepShortcutsContainer that is created. - Drag over shortcut before lifting finger to launch it. - Shortcuts are rendered in pill-shaped DeepShortcutViews, which are inside DeepShortcutContainer on DragLayer. - The shortcut container orients above or below the icon, and left or right-aligns with it. Biases for above + left-align. - Long press a DeepShortcutPill to drag and pin it to the workspace. Bug: 28980830 Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d