summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop/DragView.java
Commit message (Collapse)AuthorAgeFilesLines
* Add shadow to badgesTony Wickham2017-03-011-7/+2
| | | | | | | | | | - Add static method to ShadowGenerator to generate a circle Bitmap with a shadow. - Move setColorScale() from DragView to Themes, and use it to apply color to the shadowed Bitmap. Bug: 35744066 Change-Id: I8d1da528bbf94dc83851f0b4016361ed9f8d5349
* Remove unused View parameter from ofFloat method.Jon Miranda2017-02-061-2/+2
| | | | Change-Id: I5fabd5c78de52ba68b67e0b1bd7208f4d1f7cbea
* Updating the preview generation logic so that it aligns better withSunny Goyal2017-01-271-0/+4
| | | | | | | | | | | | the drag source image > Using common code for pending item drag (WidgetContainerView and PinItemDragListener) > Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut directly. Previously the multi-window drop was routing through onActivityResult which was causing some state information to be lost. Bug: 33584624 Change-Id: I0259870032185713caa9bff27092dbae6ce91199
* Merge "Removing all compatibility code below Lollipop" into ub-launcher3-masterSunny Goyal2016-12-291-15/+3
|\
| * Removing all compatibility code below LollipopSunny Goyal2016-12-161-15/+3
| | | | | | | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* | Fix clipping of drag outline by increasing padding.Jon Miranda2016-12-201-0/+7
|/ | | | | | | Low resolution will be addressed in future CL. Bug: 31915722 Change-Id: I6bdd32b7a30819fde1f15473a63ac280029b6715
* Animate icons back to where they were picked up.Tony Wickham2016-11-021-4/+12
| | | | | | | | | | | | We do this for pre-dragged icons instead of calling onDrop(). - Removes need for special logic in onDrop() to check if mIsInPreDrag - Dropping from pre-drag in all apps also animates instead of jumping We also do this when dropping an icon while still transitioning to spring-loaded mode, to avoid having a janky jump at the end - Bug: 27135377 Change-Id: I4548c3e2fef3423d1ba36057fb53807b1b4ad0fc
* Launcher shortcuts animations update.Sunny Goyal2016-07-271-7/+35
| | | | | | | | | | | > 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
* Increasing the size of the drag icon when a shortcut is draggedSunny Goyal2016-07-211-5/+5
| | | | Change-Id: I7d768657300d3229e05d1eb18aec3720a9098ffc
* Long-press on an app to reveal its shortcuts.Tony Wickham2016-06-291-8/+5
| | | | | | | | | | | | | | | - 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
* Tweak spring-loaded workspace.Tony Wickham2016-02-081-4/+5
| | | | | | | | | | | | | - No page indicators in spring-loaded mode - Don’t move workspace up as high - Scale workspace at 90% instead of 80% on phones - Increase speed of workspace -> spring-loaded -> workspace - Widgets were being scaled down twice when dragging from widget picker - Don't scale up icons when dragging (scaling other stuff down is enough) - Make scrim less dark and panels more transparent - Thin white border around page instead of highlight when hovering Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
* Merge "Add appropriate (tiny) offset to widget drops so they land ↵Tony Wickham2015-12-041-4/+4
| | | | | | | | | correctly." into ub-launcher3-burnaby-polish am: 8db5d7ca60 * commit '8db5d7ca60e79f007bfce7952c15c74d0ee44bc0': Add appropriate (tiny) offset to widget drops so they land correctly.
* Scale down drag views in spring-loaded workspace.Tony Wickham2015-10-011-3/+3
| | | | | Bug: 24190193 Change-Id: Ic490fc3f46702c3d5360e869c4172f31700085a1
* Moving drag-drop related code into a separate package.Vadim Tryshev2015-08-201-0/+366
This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl". I'm not moving DragSource because it's referred from gsa code. Bug: 22609426 Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3