summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Fixing issue with flash during overview transition.Winson Chung2015-07-311-1/+6
| | | | | | | | | | | - This is due to the TransitionDrawable which does not actually start an animation until it is first drawn. This workaround will just immediately reset the transition if it is not currently visible instead of animating (which is actually deferred until the next animation into overview mode). Bug: 22414257 Change-Id: Id481303d0c99a20c1d16396c024ab50303f45576
* Adding minSpanX and minSpanY for all the launcher widgetsSunny Goyal2015-07-171-2/+6
| | | | | Bug: 22353460 Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
* Using material style overscroll effect for workspace and foldersSunny Goyal2015-06-191-33/+0
| | | | | Bug: 21335369 Change-Id: I53cc6edfa87334b9326f1dedd90c3e2222beade5
* Merge "Stylus support: creating and setting listeners for stylus button ↵Mady Mellor2015-06-031-0/+17
|\ | | | | | | press" into ub-launcher3-burnaby
| * Stylus support: creating and setting listeners for stylus button pressMady Mellor2015-06-021-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates almost(*) all locations that use a long press listener to also set a custom touch listener that recognizes the stylus button press action. The stylus button press action is: when a stylus touches a view while the primary stylus button is pressed which may occur on a DOWN or MOVE event. *The location this is *not* enabled for is: Longpress to enter "overview" mode -- this isn't really a selection or drag n drop action; it is also easy to accidentally do this while using the stylus gesture to drag n drop items which is not an ideal interaction. Also not set for the "cling" that demonstrates this. Bug: 20430722 Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca
* | Removing some synthetic method creationSunny Goyal2015-06-021-4/+2
|/ | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* Fixing page background not displayed when dragging from all appsSunny Goyal2015-05-271-4/+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
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-9/+5
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Animating workspace active background changeSunny Goyal2015-05-211-46/+29
| | | | | | > Removing workspace_overscroll_drawable_padding which is always 0 Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
* Refactoring DeviceProfileAdam Cohen2015-05-211-13/+10
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Merge "Removing some unused functionalities" into ub-launcher3-burnabySunny Goyal2015-05-201-19/+6
|\
| * Removing some unused functionalitiesSunny Goyal2015-05-191-19/+6
| | | | | | | | | | | | | | | | | | | | > Removing obsolete progrard rules > Removing BackgroundAlphaMultiplier from CellLayout, which is always 1 > Removign otiline animation from workspace. This animation never runs, as it is called during startReordeing which always happens when overview mode (workspaceInModalState() is true) Change-Id: I43219e41ea188771bc818988c1bcbd523f28cba6
* | Merge "Moving LauncherAccessibilityDelegate to accessibility package" into ↵Sunny Goyal2015-05-201-2/+2
|\ \ | |/ |/| | | ub-launcher3-burnaby
| * Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-2/+2
| | | | | | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* | Adding drop shadow effect in allappsSunny Goyal2015-05-151-2/+4
|/ | | | Change-Id: Ic7a9b6e23d925d27a8dcbd418d2609e43917ac45
* Optimizing shadow generation by reusing bitmap.Sunny Goyal2015-05-151-35/+27
| | | | | | | | > Not creating unnecessary bitmaps > Final bitmap is generated as ALPHA_8 instead of ARGB_8888 > The shadow drawing is done directly in the view Change-Id: I504fa2ea3abdc1a3c3fb9ad57d6e28880d2584a1
* Adding accessibility widget resizeSunny Goyal2015-05-061-0/+17
| | | | Change-Id: I954f01733474450cbeedba2406e1d6d373bb87a3
* Removing debug logSunny Goyal2015-04-301-1/+0
| | | | Change-Id: Ifb6adc0826d744f2bbc654c37c2470754f364a2b
* Merge "Enabling accessibility drag and drop in folder" into ub-launcher3-burnabySunny Goyal2015-04-301-267/+21
|\
| * Enabling accessibility drag and drop in folderSunny Goyal2015-04-281-267/+21
| | | | | | | | | | | | | | | | | | | | > Moving DragAndDropAccessibilityDelegate to a separate class > Using getFocusedVirtualView() instead of using DownX and downY > Updating various accessibility strings Bug: 19776741 Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
* | Simplifying add to workspace by not going through the worker threadSunny Goyal2015-04-291-0/+4
|/ | | | Change-Id: I3260786bee257aea93ade49e6fa18008232addbe
* Removing some unused method params from CellLayoutSunny Goyal2015-04-241-318/+40
| | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Accessibility fixesSunny Goyal2015-04-241-1/+1
| | | | | | | | > Enabling top bar buttons in accessibility drag-drop > Unifying logic to show delete/uninstall/app-info targets > Announcing cell loction as 1-index instead of 0-index Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
* WidgetTray revamp workHyunyoung Song2015-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | - RecyclerView is rendering - Animation is connected - Drag and drop is now handled - UI tweaking: background, margins, more to come. - Flicker and preview not loading issue: fixed height for the horizontal scroll view. - Shortcuts are added - Widget Preview loading should support shortPress for drop - UI tweaks left: overlay of arrow when there are more items to scroll - icons are added in the section header - Sorting of widget sections and widget horizontal list - Adding all the padding constants to dimen.xml file - RecyclerView should only support one view type For items to be addressed in follow up patches OR CLs, TODO is added to the comment. b/19897708 Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
* Removing more code with API 21 dependencies.Winson Chung2015-03-241-8/+27
| | | | Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-15/+16
| | | | | | | | | | | 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
* Enabling accessible drag and dropAdam Cohen2015-03-091-12/+294
| | | | | | | | | | | | | | | | | | | | | | -> 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-5/+1
| | | | Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
* [key event focus handling] Cleanup/Refactor/FeatureHyunyoung Song2015-02-201-2/+2
| | | | | | | | | | | | | | 1) Focus navigation handling is refactored to Focus utility class. New 2 step dpad navigation algorithm is inside Focus class 2) Introduced a map (or matrix) that indicates where sparse icons are located inside a grid. This enables getting rid of the icon sorting logic which was costly. 3) Unified all the dpad handling logic inside the handleXXKeyEvent methods 4) DOWN/UP key will allow navigation between workspace icons and the hotseat 5) Folder icons allow DOWN/UP to navigate to the title b/19381790 Change-Id: Id45b3f215ef7c1ca5f99b08e3d721e219298627a
* Adding accessibility controlsSunny Goyal2015-01-161-4/+4
| | | | | | | | | | | > Adding 'Remove' option to workspace items > Adding 'Add to workspace' to all apps and widget list items, which adds the item to the first available space, giving preference to the current workspace screen > Adding 'App info' and 'Uninstall' options to appropriate items Bug: 18482913 Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-3/+11
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Fixing wrong views being made visible when opening all appsSunny Goyal2014-09-101-4/+1
| | | | | issue: 17422327 Change-Id: I18175ecba154dff3ff5d7e1b16696ca46c7aeae8
* Merge "Updating the icon click feedback" into ub-now-porkchopSunny Goyal2014-08-201-36/+21
|\
| * Updating the icon click feedbackSunny Goyal2014-08-191-36/+21
| | | | | | | | | | | | | | | | | | > Using BubbleTextView everywhere, removed PagedIconView > There is a brightness feedback on touch and shadow feedback on click, until app launches issue: 16878374 Change-Id: I3dc1149a123c8a75feca6210948398bf2187f1f2
* | Unify next / prev page hints for drag and drop across devicesAdam Cohen2014-08-191-8/+18
|/ | | | | | | | -> 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
* Merge "Updating the UI for focused state of an icon/folder." into ↵Sunny Goyal2014-08-161-4/+1
|\ | | | | | | ub-now-porkchop
| * Updating the UI for focused state of an icon/folder.Sunny Goyal2014-08-181-4/+1
| | | | | | | | | | | | issue: 16352129 Change-Id: If2e154dba06a0648f933f9aea38898642db9fd85
* | Adding dampened snap back overscroll to Workspace and AppsCustomizePagedViewAdam Cohen2014-08-181-18/+0
|/ | | | | | issue 15475254 Change-Id: I5eb9fc480167faf4be16bd17bf18e2d103f40f47
* Merging motorola's patch to prevent crashes on view id mess upSunny Goyal2014-07-241-8/+9
| | | | | issue: 15517526 Change-Id: Ib15b3dc2f5ed4e488f5d172ed02ccb72741d5980
* Enabling quantum look and feel everywhereAdam Cohen2014-07-071-5/+0
| | | | | | | | -> _l assets become default, new folder icon look is default -> Starting to unify folder look / feel with all apps -> New page indicators Change-Id: I50b2c647fbcbe6ed27705527d8e16bd89e123d0b
* Add new assets for LMP previewAdam Cohen2014-06-111-0/+5
| | | | | | issue 15544569 c), d), e) Change-Id: Ib352ef1fa7c19c3695c82f3ea31936a4b41da5aa
* Remove antiquated way of determining CellInfo during long pressAdam Cohen2014-05-121-86/+10
| | | | | | | -> allows us to eliminate cast of getTag() to CellInfo to fix issue 13587508 Change-Id: Id2277206765621f664b758cce800bf8423231b1e
* Allow scrolling folders in when all apps is disabled.Nilesh Agrawal2014-01-021-1/+1
| | | | | | | | Allows for more items to be added into a folder. Allows for scrolling by letting the content area inside the scroll view to be taller. The height of content area was capped in https://googleplex-android-review.git.corp.google.com/#/c/387583/ Change-Id: I8d7950ac9c155e26c5a299c17ae6a2bbf829dce6
* Clean up importsMichael Jurka2013-12-131-2/+0
|
* Merge "Adjusting grid for tablets and fixing incorrect resources for large ↵Winson Chung2013-12-121-1/+6
|\ | | | | | | tablets." into jb-ub-now-kermit
| * Adjusting grid for tablets and fixing incorrect resources for large tablets.Winson Chung2013-12-101-1/+6
| | | | | | | | Change-Id: I4c2a058da934bef14f5be3c53ebda940aeb990ca
* | Fix new NPE relating to reorder hintsAdam Cohen2013-12-111-2/+2
| | | | | | | | Change-Id: I80ff327ee549caef5802eb7194d48b1e8424ce47
* | Adding reorder hinting, hopefully will help with (issue 10654628)Adam Cohen2013-12-091-58/+98
|/ | | | | | | -> Adds instant feedback that reorder _will_ happen, so hopefully will improve perceived disambiguation Change-Id: Icd99e7beeb87e79627a6b9fc78a9132781410379
* Fix issue with adding widget with config activity to empty screen (issue ↵Adam Cohen2013-10-311-0/+9
| | | | | | 11381059) Change-Id: Ic7eecb30422e7a6cf35ebe8470d9eba8752d406e
* Initial changes to support smaller landscape layouts.Winson Chung2013-10-281-1/+1
| | | | Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876