summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragLayer.java
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Fix Insets with SearchBarRaj Yengisetty2014-11-191-9/+2
| | | | Change-Id: I6a79447eeff47fab5f604e823a2210e32580e909
* PagedView: Transition EffectsNebojsa Cvetkovic2014-11-191-9/+9
| | | | | | | | | | | | | | | | Conflicts: res/layout/overview_panel.xml res/values/cm_arrays.xml res/values/cm_strings.xml res/values/dimens.xml res/values/preferences_defaults.xml src/com/android/launcher3/AppsCustomizePagedView.java src/com/android/launcher3/Launcher.java src/com/android/launcher3/PagedView.java src/com/android/launcher3/Workspace.java src/com/android/launcher3/settings/SettingsProvider.java Change-Id: Ib134705952877165c334181548d577b3dceece68
* Trebuchet Settings UI Refresh.Raj Yengisetty2014-11-191-0/+13
| | | | | | | | | | | | | | | | | | - Overview Panel contains all Launcher Settings - Accessible through long press on Workspace or HW Menu button - Settings are held in a SlidingPanel in the Overview Panel - Replace the Settings shortcut in Overview Panel with Themes shortcut - Replace widgets icon with new widgets icon from Launcher3 - Trebuchet Settings changes no longer require restarting Process - Transition Effects have PNG Sequence to show animation sequence - Remove PageIndicator click event to open Overview Panel in AppTray Contributors: Adrian Foulk - UX Lead Abishek Devkota - Project Manager Hayden Schoen - UX Designer Change-Id: I2186213960cf12e840e814757894fe104551856b
* 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