summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragLayer.java
Commit message (Collapse)AuthorAgeFilesLines
* Port Remote Folder from 12.1 to 13.Tyson Miller2016-01-281-0/+1
| | | | Change-Id: If8cf9d5f054e8948ead702883b79f28db26c4d8b
* Refactoring search bar animations.Winson Chung2015-08-051-2/+2
| | | | | | | | | | - This refactoring ensures that LauncherStateTransition does not do its own animation on the QSB, and that all animations to the SearchDropTargetBar go through its own animators. Bug: 22515084 Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
* Removing unused animation styleSunny Goyal2015-06-011-31/+0
| | | | Change-Id: Ib8031eb9604cb2c10d4ac07e22b94772f7967a89
* Fixing page background not displayed when dragging from all appsSunny Goyal2015-05-271-1/+1
| | | | | | | | | > 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
* Merge "Moving LauncherAccessibilityDelegate to accessibility package" into ↵Sunny Goyal2015-05-201-0/+1
|\ | | | | | | ub-launcher3-burnaby
| * Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-0/+1
| | | | | | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* | Avoiding object allocation during drawSunny Goyal2015-05-191-15/+16
|/ | | | Change-Id: I94c146e0f4ad7386a31782f0e63e5228a2fa0442
* Various lint error fixes.Sunny Goyal2015-05-141-10/+4
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Resource cleanup: Removing obsolete resourcesSunny Goyal2015-05-131-7/+8
| | | | | | > For workspace scrim, using a flat color, instead of a 1-pixel bitmap Change-Id: I7e8a16293b90303b0674d7f678c3f4cc5fb8a962
* Accessibility: Folder drag and drop fixesSunny Goyal2015-05-051-10/+39
| | | | | | | | > Do not allow empty cells on the last page to be click targets > Make drop targets accessible > Do not close folder on tap outside Change-Id: I7cae20e45097092f41408b888e20b6c40c17d981
* Removing some unused method params from CellLayoutSunny Goyal2015-04-241-2/+1
| | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-5/+6
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Make sure DragLayer layout params are of the correct typeAdam Cohen2014-10-281-4/+32
| | | | | | bug 18141419 Change-Id: I50695a62cf9e1f25c054ac2c7197cd056d54cfae
* Allow LauncherOverlay to access and manage insetsAdam Cohen2014-10-241-38/+2
| | | | Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
* First pass of the Launcher Overlay interface / implAdam Cohen2014-10-221-0/+14
| | | | | | | -> Added simple reference launcher extension -> Make launcher able to handle a null qsb Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
* Updating clings, removing ununsed clingsSunny Goyal2014-08-251-2/+5
| | | | | | issue: 16127412 Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
* Update adjacent page hintsAdam Cohen2014-08-221-9/+20
| | | | | | -> draw the hints immediately above the workspace Change-Id: Id09070e3876516daf9650132052ab61d02a2cf4d
* Unify next / prev page hints for drag and drop across devicesAdam Cohen2014-08-191-11/+33
| | | | | | | | -> Eliminate the white bgs on tablets during drag (issue 15880213) -> Add stateful (active and rest) next / prev page hints (issue 15937059) -> Fix recent regression which allowed overscroll in custom content area Change-Id: I1198dc88ca8570cb9e1afd3ca939be06a8dea92e
* Updating the virtual preloader UX.Sunny Goyal2014-08-111-0/+4
| | | | | | | | | | | | > No click feedback when in preloader mode > No preloader UI when drawn in drag layer > The preloader consists of a background 9 patch image and a circular progress is drawn in the content region of the background. > The preloader is drawn in a slightly larget area than the actual bounds to make the circular progress more prominent compared to the icon. issue: 15835307 Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
* Preliminary work on Material TransitionsAdam Cohen2014-07-181-2/+28
| | | | | | | | | | | | | | | -> Early exploration of AllApps Hero transition with circular reveal -> Stripping a bunch of dead code from AppsCustomizeTabHost -> Moved background scrim to DragLayer -> Removed "SMALL" state from workspace: replaced with NORMAL_HIDDEN and OVERVIEW_HIDDEN. This is mainly to reduce the overall usage of the z-space model between allapps/widgets and workspace. There are vestigial remains of this model, mainly due to the overview mode, and a bit for spring-loaded. Change-Id: If2302a24394f0ec66621f01ffa2fc4934aa10c3f
* Ensure the intro view is always the top view in the draglayer if it is presentAdam Cohen2014-04-081-5/+18
| | | | | | | | | | -> On devices post-api-16, we can achieve this just with child drawing order but on level 16 devices, child drawing order doesn't give us touch dispatch which is problematic for the intro screen. issue 13796017 Change-Id: Ibf89ae91d8489f2de1eb9c8f235a0e6e6aed1847
* Fix pre sdk-18 compatibility (crash in dispatchDraw)Adam Cohen2014-04-071-7/+11
| | | | | | issue 13801679 Change-Id: I25b997179fd8eb7cdec6fc48d81533fb1c3094ce
* Attempt to fix crash on workspace drag and drop on certain JB devicesAdam Cohen2014-04-041-1/+7
| | | | | | issue 13801679 Change-Id: I4769220ddeab566a869050b20d6064809c70bc19
* Adding in-activity intro screen (issue 12905636)Adam Cohen2014-03-201-10/+32
| | | | Change-Id: Ifb016ca6e5052fd91535b98a39f78569200955a8
* Implement spring-loading of folders when dragging over.Jorim Jaggi2014-02-121-20/+15
| | | | | Bug: 8912132 Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
* Adding migration Clings. (Bug 11973614)Winson Chung2014-01-101-1/+2
| | | | | - Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
* Remove a non-obvious fall through in a switch statement.Mihail Dumitrescu2014-01-071-7/+4
| | | | | | | | | This CL does not modify the result of calling onInterceptHoverEvent() assuming isEventOverFolder() has no side effects. The only change is that isEventOverFolder will now be called once rather than twice when action == MotionEvent.ACTION_HOVER_ENTER and isOverFolder == true. Change-Id: Icc28ab880cf5094e49f51d72035891e924cb2031
* am 89ee93e0: Merge "Use the icon bounds for all calculations." into ↵Winson Chung2013-11-151-3/+7
|\ | | | | | | | | | | | | jb-ub-now-jolly-elf * commit '89ee93e0f8b6ac1ed6aefc2b940d1606f2027491': Use the icon bounds for all calculations.
| * Use the icon bounds for all calculations.Winson Chung2013-11-141-3/+7
| | | | | | | | | | | | | | | | - Fixes a drag and drop issue when the dynamic grid scales icons down, due to the drawable bounds not being equal to their bitmap sizes. Change-Id: If7c68b51131de7bac3195a2619e22340f7789432
* | Set insets on newly added views.Dave Hawkey2013-11-071-12/+24
|/ | | | | | | | This is needed for adding an internal-only dogfood indicator above the search plate in http://ag/386251. Bug: 10954064 Change-Id: I72cb0e978a5118ce45f69a493ac631d0c165b237
* Fix drop animation issue in springloadedAdam Cohen2013-10-151-5/+7
| | | | Change-Id: I1d8bf9d92ab7b94238e3e6a27b0eebf2c9af6872
* Fix widget longpress issue where longpress misfires (issue 10988288)Adam Cohen2013-10-081-6/+26
| | | | Change-Id: Ibe4aa4d92a1b419b63ff3cf61164c637fb579221
* Ensuring that the folder scrim background spans the full device height. (Bug ↵Winson Chung2013-09-271-1/+1
| | | | | | 10965246) Change-Id: I603d6ed61d01c6b0a460dc0205eceb25f6964b9d
* Add system window inset support to DragLayer and children.John Spurlock2013-09-111-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of fitting system windows as before, DragLayer now lays out under the system windows. DragLayer will simply add the system window insets to each child's layout margins by default. e.g. for Hotseat, Page Indicators, QSB, Search Overlay. Children that want to use the full viewport can declare so by implementing a new Insettable interface. System window insets will be passed to Insettable#setInsets(insets) and the child can do what it wants with them. Currently, two of DragLayer's children implement Insettable: 1) Workspace (for the -1 screen). Full screen pages are given the entire viewport, paged view offsets modified to end up in the right place now that the viewport is larger (the full screen height). Non-full screen pages like the normal icon pages simply apply the insets to end up in the same place they did before. NowClientCardsView uses the full viewport, applying the insets as padding. Will want to better take advantage of this new real estate in a future CL. 2) All Apps (AppsCustomizeTabHost). Applies the insets as layout margin one level down, so that the bar area is opaque during the transition, but visually the content lands in the same place. (Also add db_files to .gitignore to ignore the output of the db tool) Bug:10687177 Bug:10652189 Change-Id: I80b25d63884d244fcf704b24dad9497ee0d8b453
* Initial Changes for Dynamic GridWinson Chung2013-08-201-5/+2
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Don't switch pages when dragging out of folderAdam Cohen2013-08-141-1/+1
| | | | | | | | | -> Fix bug where page switch indicator wouldn't draw on right -> Fixed some code related to folder reordering -- no behaviour change yet, but once the new AutoScroll is in, this should behave correctly (ie. shouldn't reorder while in scroll zone) Change-Id: Ic14a8d70858777164f094204472dc6a726dd461a
* Verifying that new applications are added and fixing issue with new items ↵Winson Chung2013-07-251-71/+2
| | | | | | | | getting wrong ids. - Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
* Fixing performance issues with drawing all visible pages.Winson Chung2013-07-191-2/+8
| | | | Change-Id: I17736c1e6afa1f4a961c136fe82bf1d632cbe6cc
* Porting PagedView from KG to gain simplified scaling model, reorderingAdam Cohen2013-07-081-14/+78
| | | | | | | | | | | | -> 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
* Lazily instantiate LauncherAppState.Daniel Sandler2013-06-271-4/+1
| | | | | | | | The application context for LauncherAppState is supplied by the application whenever it starts; don't ask for an instance before that. Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
* Move LauncherApplication's state and code to LauncherAppState.Daniel Sandler2013-06-111-2/+2
| | | | | | | | This removes Launcher's static data and other state out of the Application object. Now LauncherApplication (extends Application) exists only to instantiate LauncherAppState. Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+804
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b