summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
Commit message (Collapse)AuthorAgeFilesLines
* Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler2017-08-241-2/+2
| | | | | | | | Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
* Optimizations to reduce all apps jank.Jon Miranda2017-08-021-0/+3
| | | | | | | | | | * Since adding springs to the apps in All Apps, it is no longer efficient to build a hardware layer for it. * Pre-uploads bitmaps to RenderThread. * Only add overview animations if we are transitioning to/from it. Bug: 63711551 Change-Id: I948267598e95ec59dc156acb9abe6b5b789110c0
* Don't fade in text if icon is in hotseatTony2017-06-281-1/+10
| | | | | Bug: 63011217 Change-Id: Ie914fcdfd0bf36b0cf12cc54f4e93206aa1074bd
* Fixing two different implementations for animating text alphaSunny Goyal2017-06-231-19/+3
| | | | | | | The animator in BubbleTextView maintains an internal state which was getting invalidated by the FolderAnimator. Change-Id: I53885fe8f1773ca62fe59f1712056f02ff9a749f
* Separating double shadow logic for BubbleTextView in a separate subclassSunny Goyal2017-06-231-104/+11
| | | | | | | This allows better customization and reuse of the double shadow logic and simplified various attribute management Change-Id: I5e277d8399756385452d8bb8c0a0107234a76d34
* Setting the callback for previewItems to folderIcon. This allows the ↵Sunny Goyal2017-06-221-13/+0
| | | | | | | | | | FolderIcon to get updated without going through the child'draw pass. Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls Bug: 62900800 Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
* Show and update preload icons when they are in a FolderIcon preview.Jon Miranda2017-06-201-0/+13
| | | | | Bug: 62626549 Change-Id: Ie0ad06d0239dccb8d8388381ffe845c4bbc079d6
* Portrait grid changes for Workspace/All Apps.Jon Miranda2017-06-191-0/+1
| | | | | Bug: 37015359 Change-Id: Ifbdd0e71c36e532b189e02283e3eeb562ebe2654
* Fade original icon's text in as popup closesTony2017-06-161-3/+32
| | | | | Bug: 62444131 Change-Id: If8f91d8455a5952d252f9cdd1b211afb5ee035c7
* Some theme fixesSunny Goyal2017-06-111-1/+0
| | | | | | | | | > workspaceTextColor was not clearly defined to white and relied on HomeScreenElementTheme > Not all attributes were defined in sw720dp. Created a interm style to avoid such errors > Applying proper tint to resize frame > Fixing shadow colors for homescreen icon Change-Id: If8441011c968291de50b2fd8d7612ce3d5353b95
* resolve merge conflicts of 7092db024 to ub-launcher3-dorval-polishTony Wickham2017-06-081-3/+10
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution.x Change-Id: I0f9ed3d42fcb04299c3c23d06629f855614c0538
| * Add support for color extracted notification dotsTony Wickham2017-06-081-3/+10
| | | | | | | | | | | | | | | | | | | | | | Changing the badge_color in colors.xml to transparent will cause them to be color extracted. When an extracted color is used in the IconPalette, we desaturate the background. Otherwise we respect the exact color specified in colors.xml. Change-Id: Ie82d0c5335fa5f24d4cc47766e4c1719c4916f8b
* | Dark color on super light wallpaper supportMario Bertschler2017-06-071-5/+8
| | | | | | | | Change-Id: I0fdfa9abefb72e06c45b1f635ac97e2acfa97f05
* | Don't hide text in pre-drag when opening popup above iconTony2017-05-241-1/+18
| | | | | | | | | | Bug: 38468930 Change-Id: Id03162af829a00442d1db0a93f7e9d8bcb998b1a
* | resolve merge conflicts of 8af16760d to ub-launcher3-dorval-polishTony Wickham2017-05-191-8/+0
|\| | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I4cdfeebd09be58270c249429104d91dc9a31b49c
| * Merge "Update accessibility for popup" into ub-launcher3-dorvalTony Wickham2017-05-181-8/+0
| |\
| | * Update accessibility for popupTony2017-05-111-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Content description includes count of notifications. - Notifications have a dismiss action. - All icons that support shortcuts will have action to show shortcut menu, since there will be system shortcuts even if there are no deep shortcuts. Bug: 36564782 Change-Id: I51b085fa26754f2dcd93c7db6548f2edf054f494
* | | resolve merge conflicts of 02aced978 to ub-launcher3-dorval-polishTony Wickham2017-05-191-1/+1
|\| | | | | | | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Ib44ce0130b9eb01c354f18326d7d3a1eeb2c5eb8
| * | Use a single color for all icon badges.Tony Wickham2017-05-161-1/+1
| |/ | | | | | | | | Bug: 38346375 Change-Id: I26b7ad3dcfea6a18e169d656e19605c9794eadd3
* | Support notifications with 0 count (show as dots)Tony Wickham2017-04-271-1/+1
|\| | | | | | | | | | | am: 0530e8c608 Change-Id: I6ec98b093fbd297d2f57bea91c0eb6b051c4b3c5
| * Support notifications with 0 count (show as dots)Tony Wickham2017-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Show number if number > 0 - Show icon if number == 0 and a notification specified an icon to show - Show a dot otherwise - In cases of multiple notifications, stack a second badge behind the first (visuals will be updated in future CL, as well as support stacked dots) - Folders always show dot if any app within has a badge. Change-Id: I0a89059b0e0a0d174fe739c9da4f75fa18c0edfa
* | Merge "Move update popup header out of BubbleTextView" into ub-launcher3-dorvalTony Wickham2017-04-261-11/+3
|\| | | | | | | | | | | am: 59c4ae4d89 Change-Id: I7d70478ccf17c74c65bab16641f888c105899799
| * Move update popup header out of BubbleTextViewTony Wickham2017-04-261-11/+3
| | | | | | | | | | | | | | | | Now we update from Launcher, which is both more efficient (only run it when badges update, not whenever BubbleTextView applies an ItemInfo) and more logical/cleaner. Change-Id: Ib77433d9489c29e9781b3a48de37de0e07b5ba07
* | Merge "Update icon badges to match spec" into ub-launcher3-dorvalTony Wickham2017-04-251-1/+89
|\| | | | | | | | | | | am: 0fa96ea2f6 Change-Id: I5f8e6bdbca13435d54e3b636564f7d3eef58ca5c
| * Update icon badges to match specTony Wickham2017-04-251-1/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | - Size defined as percentage of app icon size - Width changes when there are 2 or 3 digits (round rect) - Offset slightly away from the app icon - Had to move drawing to BubbleTextView instead of FastBitmapDrawable - Hide badge when dragging and while popup is open - Tweaks for some color/text parameters Bug: 35744066 Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c
* | Show promise app icon progress in All Apps and setup market intentMario Bertschler2017-03-201-10/+22
| | | | | | | | | | | | | | | | | | | | | | on clicking promise app icon in All Apps. Only the progress will be changed with animation on progress update, no relayout is performed. If the icon is newly bound, the progress will not be animated. Bug: 23952570 Change-Id: I98d3f945f08a2abadf53f20e6007c15e56d5d410
* | New folder animations.Jon Miranda2017-03-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Added FolderAnimationManager, which manages the opening and closing animations. All of the animations are done in the Folder. ie. When the users taps on the FolderIcon, we immediately hide the FolderIcon and show the Folder inits place before starting the animation. Bug: 35064148 Change-Id: Icacdbbf78a25489f2eab4fd352f2c6ed71eb710b
* | Update notification visuals (part 2)Tony Wickham2017-03-021-6/+5
|\| | | | | | | | | | | am: 9407d4ab57 Change-Id: Ie6a8c6605fdb115fee6c46a0e7b60f1e5a3525ac
| * Update notification visuals (part 2)Tony Wickham2017-03-021-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Background is now white, and color beneath and divider color updated accordingly (not from color extraction) - Removed overflow text ("+6") and added it to a header ("6 Notifications"). Use "..." instead if there is an overflow. - Even spaced out icons in notification footer between the far right icon and the ellipsis - Remove code to change arrow tint, since it is always white now. This also fixes the issue where it was drawn as a rect. Bug: 35766387 Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
* | Use FolderIconPreviewVerifier to check if item is in preview.Jon Miranda2017-02-281-1/+4
|/ | | | | | Bug: 35064148 Bug: 33600656 Change-Id: I71a03636276e6169c7eb8c68eecf31f37fde2d56
* Removing custom state definition from FastBitmapDrawableSunny Goyal2017-02-231-72/+16
| | | | | | | > For Fast scrolling, using state list animator defined in xml > For Pressed state, using onState change method in a drawable Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
* Simplifying some launcher themesSunny Goyal2017-02-161-2/+2
| | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* Animate badges when they are added or removedTony Wickham2017-02-071-4/+4
| | | | | | | | | | | - Scale the badge and text or icon up or down, respectively. - Only animate if the badge is visible, and don't animate when applying shortcut or app info. - Animate folder badge out when folder enters accepting state. Bug: 34838365 Bug: 32410600 Change-Id: Ie60cb1fc54fe60d72734d833040545d27660d645
* Updating the PreloadIconDrawableSunny Goyal2017-02-061-23/+3
| | | | | | | | | > The drawable gets the path from MaskIconDrawable path, instead of using a circle > The progress changes are animated as well Bug: 34831873 Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
* Add swipe-to-dismiss notifications in popup menu.Tony Wickham2017-01-251-0/+6
| | | | | | | | | | | | | | - Next secondary icon animates up to replace dismissed main notification - Add padding around main notification so it always aligns with the straight edges of the view (not the rounded corners); looks more dismissable - Notification view collapses as notifications are dismissed - To mimic system notification behavior, we copy SwipeHelper, FlingAnimationUtils, and Interpolators. We also apply elevation to notifications and reveal a darker color beneath when dismissing. Bug: 32410600 Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
* Refactor DeepShortcutsContainer to PopupContainerWithArrowTony Wickham2017-01-251-2/+0
| | | | | | | | | | | - Also added PopupItemView, which takes animation logic from DeepShortcutView, and which DeepShortcutView now extends. - Renamed ShortcutFilter to PopupPopulator, which has support for new item types (not yet used). Also moved populating logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator. Bug: 32410600 Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
* Add NotificationListener to launcher.Tony Wickham2017-01-251-3/+11
| | | | | | | | | | | | | | | | | | | | | - NotificationListener extends NotificationListenerService, and is added to the manifest. - Added PopupDataProvider, which contains logic for storing and interacting with data that goes into the long-press popup menu (shortcuts and notifications). A follow-up CL will rename DeepShortcutsContainer to a generic PopupContainerWithArrow. - If Launcher has notification access, NotificationListener will get callbacks when notifications are posted and removed; upon receiving these callbacks, NotificationListener passes them to PopupDataProvider via a NotificationsChangedListener interface. - Upon receiving the changed notifications, PopupDataProvider maps them to the corresponding package/user and tells launcher to update relevant icons on the workspace and all apps. This is guarded by FeatureFlags.BADGE_ICONS. Bug: 32410600 Change-Id: I59aeb31a7f92399c9c4b831ab551e51e13f44f5c
* Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ↵Tony Wickham2017-01-181-4/+13
|\ | | | | | | ub-launcher3-master
| * FastBitmapDrawable can draw an icon badge (notification count)Tony Wickham2017-01-131-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | - Added BadgeInfo to contain data to be shown in a badge (currently just notification count). - Added BadgeRenderer in DeviceProfile to contain things relevant to drawing the badge, such as size and Paint's. - Added IconPalette to compute colors for the badge based on a dominant color (will also be used for notifications) - FastBitmapDrawable uses these classes to draw the badge. Bug: 32410600 Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
* | Removing static Context access using LauncherAppStateSunny Goyal2017-01-111-1/+1
|/ | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Updating PendingAppWidgetHostView to load icon on the background threadSunny Goyal2017-01-051-16/+6
| | | | | Bug: 21325319 Change-Id: I0886eec5a3f36f5e1ac18020c54891a56bdb5ed2
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-5/+1
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Ensuring that ShortcutInfo always has an iconSunny Goyal2016-12-131-7/+5
| | | | | | | | | > Making iconBitmap public instead of a getter (similar to AppInfo) > Removing getIcon() which can lead to IO on UI thread > Removing updateIcon and handling the update at the caller Bug: 21325319 Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
* Adding an overridable DrawableFactory to allow creating custom icon drawablesSunny Goyal2016-12-071-17/+3
| | | | | | > Adding ItemInfo as a parameter for creating drawable Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
* Keep disabled FastBitmapDrawables disabled while fast scrolling.Tony Wickham2016-11-111-7/+2
| | | | | | | | | | | | Previously, they were animating to be colored because they were set to have a FAST_SCROLL_UNLHIGHLIGHTED state. Now they retain their disabled color when changing fast scroll states. Specfically, we remove the DISABLED state and instead make it a property of the FastBitmapDrawable. Bug: 32642959 Change-Id: I6cb2da134a550c267eebfc756eff8c91a33f028c
* Scale down folder cells to fit within bounds if necessary.Jon Miranda2016-11-041-0/+2
| | | | | | | | | The number of folder cols/rows are set in InvariantDeviceProfile. Because of this, we may need to scale down the folder cells in multi-window mode. Bug: 32176631 Change-Id: I925d5ac9d29439c5d61cf089e7784065a8cb5ebd
* Updating the paddings in folder cellSunny Goyal2016-09-191-1/+3
|\ | | | | | | | | | | am: baec6ffae2 Change-Id: I4bfa78ade93639d3864baeeb5028b9caa3935c29
| * Updating the paddings in folder cellSunny Goyal2016-09-161-1/+3
| | | | | | | | | | | | | | | | | | > Updating overall padding for the cell and adding drawable padding > Ensuring that the folder cell is always rendered properly based on available vertical space Bug: 30605958 Change-Id: I8ceb9fea5a25052b0d7461f52edca0e6a33fa085
| * Merge "Added custom actions for showing the shortcuts menu and adding a ↵Sunny Goyal2016-07-261-0/+7
| |\ | | | | | | | | | quick action on the home screen" into ub-launcher3-calgary
* | | Moving some image handling classes to .graphics packageSunny Goyal2016-09-021-2/+3
| | | | | | | | | | | | Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e