summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DropTarget.java
Commit message (Collapse)AuthorAgeFilesLines
* Support user event logging for drag and dropHyunyoung Song2016-09-011-1/+4
| | | | | | | | | | | | b/30039490 Supported in this CL: - DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS] drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS] - Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET] - $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
* Refactoring WallpaperOffsetInterpolator to a new fileSunny Goyal2015-10-161-6/+1
| | | | | | Removing some us unused methods Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
* resolved conflicts for e78e3d73 to ub-launcher3-masterSunny Goyal2015-09-251-0/+4
|\ | | | | | | Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
| * Accessibility fixesSunny Goyal2015-09-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | 1) Use a different content description for temporary new page 2) Use different accessibility description for add widget toast 3) Announce when an item is deleted 4) Announce when hovering over a drop target 5) Announce state during drag-n-drop and widget resize (similar to seekbar) Bug: 23573321, 24057944 Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594
* | Moving drag-drop related code into a separate package.Vadim Tryshev2015-08-201-0/+2
| | | | | | | | | | | | | | | | | | 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
* | Refactoring ItemInfoSunny Goyal2015-06-301-1/+1
|/ | | | | | | | > Changing dragObject to ItemInfo > Removing dropPos which is always null > Removing requiresDbUpdate which is only used in CellLayout Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
* Fixing page background not displayed when dragging from all appsSunny Goyal2015-05-271-39/+0
| | | | | | | | | > Adding empty page synchronously, instead of waiting for a frame > Changing launcher state from widgets screen in the same frame, similar to all apps > Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag > Using first page to get page bounds in drag layer, as last page may not have been measured Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
* Updating fling to delete animSunny Goyal2015-04-301-2/+2
| | | | Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
* Enabling accessibility drag and drop in folderSunny Goyal2015-04-281-0/+2
| | | | | | | | | | > Moving DragAndDropAccessibilityDelegate to a separate class > Using getFocusedVirtualView() instead of using DownX and downY > Updating various accessibility strings Bug: 19776741 Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
* Updating drop button targetsSunny Goyal2015-04-161-2/+2
| | | | | | | | > Splitting DeleteDropTarget into delete and uninstall > Showing UninstallDropTarget for app shortcuts on workspace > Showing InfoDropTarget only when developer options is enabled Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
* Enabling accessible drag and dropAdam Cohen2015-03-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | -> Using the context menu, and a new two stage system, this allows users to curate icons and widgets on the workspace -> Move icons / widgets to any empty cell on any existing screen, or create a new screen (appended to the right, as with regular drag and drop) -> Move icons into existing folders -> Create folders by moving an icon onto another icon -> Also added confirmations for these and some existing accessibility actions Limitations: -> Currently, no support for drag and drop in folders -> Considering moving the drag view so it doesn't occlude any content (in particular, when user changes pages) -> In this mode, accessibility framework seems to have problems with the next / prev operations Bug: 18482913 Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
* Refactoring common methodsSunny Goyal2015-02-261-0/+23
| | | | Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
* Porting PagedView from KG to gain simplified scaling model, reorderingAdam Cohen2013-07-081-20/+1
| | | | | | | | | | | | -> We are no longer scaling individual Celllayouts, instead we are scaling the entire Workspace (and the CellLayouts come along for the ride) -> Due to the above change, many assumptions were broken. In particular, our drag and drop / animation archiecture is fairly fragile due to the frequent and complex mapping of points between different bits of the hierarchy. This CL contains a number of fixes which address such breakages. Change-Id: I2e630eab17528729b764b61f587858f6499fd318
* Use autoscroller to handle drag scrollingMindy DelliCarpini2013-07-031-1/+1
| | | | Change-Id: Ie094cbfa91f898133f84ad9ffc349d8cfa07e668
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+184
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b