summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CellLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-3338/+0
| | | | | | | | | | Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
* Making folders work in RTL (issue 8569879)Adam Cohen2013-04-161-5/+20
| | | | Change-Id: I3c726b96a2181c07be38cd84cf220e29e9b36f78
* Fix jumps in the beginning of animationsMichael Jurka2013-03-281-3/+3
| | | | | | | | | If the first draw frame of an animation is expensive, which it often is, it causes a big jump. Added a helper class which automatically adjusts the animation start time if the first frame is more than 16ms. Change-Id: I100edbc41c2abe930a32d6bcf0a782ea9735f7f9
* Prevent CellLayouts from making calls to saveLayerAlpha()Romain Guy2013-03-061-4/+0
| | | | Change-Id: I6fe1d9b39a765f4a960f7940c7afc94c784efa16
* Disable clipping where unnecessaryRomain Guy2013-02-251-0/+5
| | | | | | | This change prevents the renderer from using a stencil buffer to render rotated CellLayouts. Change-Id: I0414f59ed45502323ab588820ceb4a5e3ec17140
* Refactoring push reordering (issue 7139335)Adam Cohen2012-11-191-155/+366
| | | | | | | | | -> This new approach is actually correct in emulating cascaded pushing of items left, right, up and down. -> Takes care of a couple crashes and some instances where reordering was not doing the right thing. Change-Id: I016120e62f5d6fa1a2a6289c3badcb6ec230b2a3
* Fix an error that is not being expressedAdam Cohen2012-08-301-1/+1
| | | | Change-Id: I8c3488906b5b95aaf20b996f488ff01bad76300c
* Fixing a couple small issues with reordering (issue 7064138), (issue 7064337)Adam Cohen2012-08-271-6/+37
| | | | Change-Id: Iaaeb37f630a71f8fd54a6064602ddd10d4d4ab91
* Merge "Adding the ability to scale the hotseat or items in the hotseat" into ↵Adam Cohen2012-08-241-8/+34
|\ | | | | | | jb-mr1-dev
| * Adding the ability to scale the hotseat or items in the hotseatAdam Cohen2012-08-201-8/+34
| | | | | | | | | | | | | | | | | | | | | | --> A bunch of stuff breaks when scaling the hotseat. More specifically, drag and drop animations between hotseat and workspace, scaling on pick up, folder animations, determination of item placement. This CL fixes these issues so that the hotseat or hotseat items are ready to be scaled. --> For now, using 90% scale factor for 7-inch+ UIs Change-Id: Iac098409347e76139e4d726a071397b56ac684d2
* | Remove unused importMichael Jurka2012-08-151-1/+0
|/ | | | Change-Id: I2eaf2b33e3b61fed86a468fbd221fd12191a396f
* resolved conflicts w/0ede734d0780a968c9c345f99a18f9f8b9fc02cdEd Heyl2012-07-251-0/+7
|\ | | | | | | Change-Id: I50900698a590e8d84a6cbcc560f95209d3a6d110
| * Ensuring that restoreInstanceState is being called promptly for ↵Adam Cohen2012-07-241-1/+7
| | | | | | | | | | | | synchronously bound page Change-Id: I0e71c29f553ad360ec42a6a0b2529d16cbddd437
* | Fix issue with push in reordering (bug: 6259603)Adam Cohen2012-07-131-20/+34
| | | | | | | | Change-Id: I7ca0abe7f0ef7559ef60f902fb18718fba5a7532
* | Merge "Trying to track down corrupt database / items disappearing"Adam Cohen2012-07-091-0/+4
|\ \
| * | Trying to track down corrupt database / items disappearingAdam Cohen2012-07-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> Adding logs for all database transactions -> Adding sanity checks for items in folders, throwing exceptions if they are violated -> Reducing database upates when re-arranging items, only update if values have changed -> Removed some dead code from ItemInfo (isGesture?) Change-Id: Ia5cd57d92082f633dbf4aa5d64612cbae2d82bb4
* | | Disable hardware layers for drag viewsMichael Jurka2012-06-291-2/+3
|/ / | | | | Also, avoiding allocating paint object every time we swipe
* | Only enable hardware layers on visible workspace pagesMichael Jurka2012-06-281-1/+9
| | | | | | Change-Id: Id82fc76d00a188556460d1a78388d46be56c9c4e
* | Remove unneeded importsMichael Jurka2012-06-251-1/+0
| | | | | | | | Change-Id: I96e125c5ddbde7df10847e9514b947c80292ea40
* | Remove use of private ValueAnimator apiMichael Jurka2012-06-191-7/+7
| | | | | | | | Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
* | Remove unnecessary use of some private APIsMichael Jurka2012-06-191-1/+1
|/ | | Change-Id: Idaba6833ddf4a8615845ca2f643c458bdeb9c403
* Improve reordering by always using the "push mechanic" if possible (issue ↵Adam Cohen2012-05-291-13/+101
| | | | | | 6275309) Change-Id: I51450c1b1f6b439c87194a6084d82fb9989154a7
* Fix issue where reorder animations could leave views in translated stateAdam Cohen2012-05-241-6/+16
| | | | Change-Id: I75f590c4ba43fec0550bbd003022d5c8309881a3
* Cleaning up some reordering issues:Adam Cohen2012-05-231-46/+30
| | | | | | | | | -> Reorder solution should never change unless target cell changes -> Simplified code and improved the behaviour when items' jiggle animations switch from one direction to another. These transitions are now seamless and have no more strange delays. Change-Id: I35d70f275d622501851328584bfcb46eec91ff3b
* Fix issue with re-order animation not hinting the correct directionAdam Cohen2012-05-231-4/+6
| | | | Change-Id: I5fdf55615fde974c2cc8ae1276031f413713cb10
* Fix a couple small bugs (issue 6539339)Adam Cohen2012-05-221-4/+4
| | | | | | | | | -> Adjusting the character of the 'shake' animation to keep a single phase, and instead stagger the animations slightly -> Fixing issue where widget is not given the size change callback if the widget is resized on drop Change-Id: I9cd9e6cd39009d9e5c70e745812b6ece71b845ee
* Ensure that rearranged widgets return to translationY=0Brandon Keely2012-05-101-1/+1
| | | | Change-Id: Ic29220624f8103eddfcbcc81d56f355f99322ca0
* Merge "Adjusting animations for home screen widget reordering." into jb-devBrandon Keely2012-05-091-4/+27
|\
| * Adjusting animations for home screen widget reordering.Brandon Keely2012-05-081-4/+27
| | | | | | | | Change-Id: Ic019b0db8456159d9577acb9a03e24f0d669869b
* | Merge "Don't show the outline on the current page" into jb-devMichael Jurka2012-05-081-1/+4
|\ \
| * | Don't show the outline on the current pageMichael Jurka2012-05-081-1/+4
| |/ | | | | | | | | | | - only on sw720dp+ devices Change-Id: I7253bedbf6dd61c766fe7e9ad861d3a917d37fed
* / 7" launcher changes.Andrew Flynn2012-05-081-50/+6
|/ | | | | | | | - Shrink icons in workspace (keeping hotseat size the same) - Increase width of QSB in landscape - Move QSB voice button to bottom in landscape Change-Id: I2c0bad4229484f516005592f2c14da1a4939acca
* Remove unnecessary allocationsRomain Guy2012-05-061-1/+4
| | | | | | | | | This change removes a couple of allocations per frame when the user is trying to scroll past the end of the workspace. The allocated object, PorterDuffXfermode, is pretty expensive and creating a new one on every frame could potentially defeat GL rendering optimizations. Change-Id: Iebaf579d29ad8f14112c5af8cb5dce8d7f4dfbaf
* Support split status bar in launcherAndrew Flynn2012-05-021-12/+10
| | | | Change-Id: I2f6687f52e8326f80e84251e39bf6cd6dc9b2f2b
* Fixing issue where widgets larger than the workspace were now bounded when ↵Winson Chung2012-05-011-0/+2
| | | | | | dropped. (Bug 6424463); Change-Id: I8dcabd084d79697933f873d44bb390f608780c3b
* Use public API to get paddingMichael Jurka2012-05-011-2/+2
|
* Making launcher update widgets with min/max extentsAdam Cohen2012-04-301-12/+12
| | | | Change-Id: Iba9325eeb95a8a8256ef6f59f4010aff09767892
* Refactoring dimens for cell size / gapAdam Cohen2012-04-271-10/+54
| | | | | | -> fixing some dimens from previous commit Change-Id: Ibab49bfb0dc403a67ab88c4ecadc49eb533eae29
* Removing crosshairsMichael Jurka2012-04-261-66/+0
| | | | | Bug: 6380576 Change-Id: I26f248fa375ae9ad24417bc55401a08bf4f479a5
* Remove use of private APIsMichael Jurka2012-04-251-18/+18
| | | Change-Id: I3e28763075f8e92391796dc009214c9fa8f50008
* Fix warnings and remove dead codeMichael Jurka2012-04-131-1/+3
| | | Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
* Widget resizing can now displace itemsAdam Cohen2012-04-121-51/+33
| | | | Change-Id: I005c9aebf64b2d01debe59f86a208075d19476ea
* Cleanup and refactoring in relation to drag and dropAdam Cohen2012-04-091-0/+4
| | | | | | | | | | | | -> folder creation, adding to folders, reordering, switching pages -> ensuring parity of dragEnter and dragExit in cell layouts and workspace (neither were consistently getting an even number of each) -> actually enforced above with exceptions -- probably want to take these out, but maybe we can leave them in as warnings -> fixed bug with mapping points to hotseat -> fixes other bugs with drag and drop Change-Id: I564568f810f2784d122ec6135012b67c2e8e7551
* Merge "Fixing launcher ANR (issue 6238175)"Adam Cohen2012-03-291-1/+4
|\
| * Fixing launcher ANR (issue 6238175)Adam Cohen2012-03-291-1/+4
| | | | | | | | Change-Id: I6518ea9e6ce8b50a5f2a3b24e909e18c5b1bde51
* | Fixing crash when dropping item in hotseat (issue 6246039)Adam Cohen2012-03-281-4/+9
|/ | | | Change-Id: I50ad5439127adbb29423116bf0471a970f62e1bf
* Fixing small bug where final item position might not match previewAdam Cohen2012-03-271-5/+7
| | | | Change-Id: I216bbf2b454f92cf02b2807f684054e4dce6a05d
* Fix non-persistence of launcher (broken by reordering changes)Adam Cohen2012-03-271-3/+7
| | | | Change-Id: I6fb9cb2257844e642df9b5599188b1cfce35df9b
* Fixing EmptyStackException (issue 6117943)Adam Cohen2012-03-271-0/+1
| | | | Change-Id: If5816c654dc1e4d5de1e72804e4cf1e845336a96
* Implementing spring-back version of reorderingAdam Cohen2012-03-261-37/+295
| | | | | | | | | | | | -> If you hover above occupied cells, we try to find a new location for the items. The items only remain in the temporary position while the drag ivew is over their original position after which they animate back. -> Items in the temporary positions animate in such a way so indicate that they are in a temporary state, and in such a way so as to hint at where they will return to. Change-Id: I7537c65228c505afbd2f1c22938cfd9d7719839a