summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/FolderIcon.java
Commit message (Collapse)AuthorAgeFilesLines
* Re-Implementation of hidden foldersVineet Patil2017-03-261-2/+31
| | | | Change-Id: I2cdb881eb6a2608279d30a1cdfc1327a89ae7693
* Implementation of folder animation changes as per cm-13.0Vineet Patil2017-03-261-26/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Folder animations in parity with cm. Folder Layout Revision Updated the folder layout to reflect design revisions based on community feedback Change-Id: Ica1bb796dfccf779a954cf0903a1ae94a010ea1a Conflicts: res/drawable-hdpi/folder_bg.9.png res/drawable-hdpi/folder_fill_highlight.9.png res/drawable-mdpi/folder_bg.9.png res/drawable-mdpi/folder_fill_highlight.9.png res/drawable-xhdpi/folder_bg.9.png res/drawable-xhdpi/folder_fill_highlight.9.png res/drawable-xxhdpi/folder_bg.9.png res/drawable-xxhdpi/folder_fill_highlight.9.png res/layout-land/launcher.xml res/layout-port/launcher.xml res/layout-sw720dp/launcher.xml res/layout/user_folder.xml res/values/dimens.xml src/com/android/launcher3/Folder.java src/com/android/launcher3/FolderIcon.java src/com/android/launcher3/Launcher.java Folder animation changes as per cm-13.0 Change-Id: I019511a58bd9f6a60a3c9b68c826726881cec83f Implementing folder animations Change-Id: I83f17c996ecc894ce22fd195b9b33caf58e2e822
* Updating assetsSunny Goyal2015-06-051-2/+2
| | | | | Bug: 21304080 Change-Id: I26cf435779b477f0961d8e0d56dd6b86b418a3be
* Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-3/+4
| | | | | | | | | > Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
* Stylus support: creating and setting listeners for stylus button pressMady Mellor2015-06-021-0/+8
| | | | | | | | | | | | | | | | | | 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
* Refactoring DeviceProfileAdam Cohen2015-05-211-6/+4
| | | | | | | | | | | | | | | | | | | | -> 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
* Trim all whitespace from titles and labels.Winson Chung2015-05-081-1/+1
| | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-9/+10
| | | | | | | | | | | 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
* Lazy loading high res iconsSunny Goyal2015-03-171-1/+1
| | | | | | | > Loading low-res icons for icons which are not visible on the homescreen. Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
* Adding accessibility controlsSunny Goyal2015-01-161-0/+1
| | | | | | | | | | | > 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
* Updating the icon click feedbackSunny Goyal2014-08-191-2/+3
| | | | | | | | | > 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
* Updating the UI for focused state of an icon/folder.Sunny Goyal2014-08-181-0/+1
| | | | | | issue: 16352129 Change-Id: If2e154dba06a0648f933f9aea38898642db9fd85
* Updating the virtual preloader UX.Sunny Goyal2014-08-111-2/+2
| | | | | | | | | | | | > 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
* Merge "Preliminary work on Material Transitions" into ub-now-masterAdam Cohen2014-07-191-1/+1
|\
| * Preliminary work on Material TransitionsAdam Cohen2014-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> 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
* | Merging Motorola's patch to disable apps when is safe mode.Sunny Goyal2014-07-181-4/+11
|/ | | | | | issue: 16044192 Change-Id: I10069dcdf459ecc71361271e883eabb743d77822
* Adding a circular progress bar for preloader iconsSunny Goyal2014-07-161-2/+7
| | | | Change-Id: I1b5ba61c01a16a8cb5d3f9e31f827f8c99a1ffc9
* Enabling quantum look and feel everywhereAdam Cohen2014-07-071-14/+3
| | | | | | | | -> _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
* Make folder stack more vertical for LMP previewAdam Cohen2014-06-101-0/+12
| | | | | | issue 15544569 h) Change-Id: Ie9830429f629db0963f5313d9e4c0c18b14bff4a
* Preventing crash when hovering over folder icon with widget shortcutAdam Cohen2014-05-191-1/+7
| | | | | | issue 13748105 Change-Id: I053f6c7748310ad117ec216655e6147bfe6e4f85
* Fix long press after already moving off iconJason Monk2014-04-221-1/+15
| | | | | | | | | | | | | When an icon is in the Hotseat and a user drags off from the icon, but continues holding down, the icon gets a long press triggered by the CheckLongPressHelper. To fix this a check has been added on move events to see if the point has moved outside the view and to cancel the long press check callback if it has. Bug: 13569451 Change-Id: Id175cdc220d70b5e9f8e492ed5a3cc7c3f11db10
* Make FolderIcon.getFolder() public and add Folder.getContent().Anjali Koppal2014-03-101-1/+1
| | | | Change-Id: I21ad8b8178acbde2759cd2dfcd015d91e00b7505
* Implement spring-loading of folders when dragging over.Jorim Jaggi2014-02-121-0/+31
| | | | | Bug: 8912132 Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
* Clean up importsMichael Jurka2013-12-131-2/+1
|
* Initial changes to support smaller landscape layouts.Winson Chung2013-10-281-9/+10
| | | | Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876
* Ensuring that we restore bounds when resizing them for folder preview ↵Winson Chung2013-10-141-0/+3
| | | | | | drawing. (Bug 11203738) Change-Id: I0cef3916217bd3808363cafcfb25c2cd140f35fc
* Change folder icon item overlay to white (issue 11030725)Adam Cohen2013-10-011-1/+2
| | | | Change-Id: I119cd06211722f86f901eb08ee9f7d1d9903e4ea
* Folder assetsAdam Cohen2013-09-221-1/+1
| | | | Change-Id: I8db554990ebe5f695af293c1b482abcd20704b4f
* More folder cleanupAdam Cohen2013-09-201-1/+4
| | | | | | | | -> Eliminating out ring -> Fixing the cursor color -> Using "nolip" asset appropriately Change-Id: Ie0e341e865298555dcb0fcb5644e1f3e6b5e39e6
* Move wallpapers to external activityMichael Jurka2013-09-041-2/+2
| | | | | | | Also renaming Launcher's ApplicationInfo to AppInfo since ApplicationInfo is already a framework class Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
* Initial Changes for Dynamic GridWinson Chung2013-08-201-7/+21
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Remove unnecessary FolderRing bitmaps.Daniel Sandler2013-07-311-4/+5
| | | | | Bug: 10097530 Change-Id: Ic791d5c36b16474e1ab0a800e18aec802755dd67
* Porting PagedView from KG to gain simplified scaling model, reorderingAdam Cohen2013-07-081-4/+0
| | | | | | | | | | | | -> 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
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+667
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b