summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Added custom actions for showing the shortcuts menu and adding a quick actionSunny Goyal2016-07-251-0/+7
| | | | | | | | | | | | | | on the home screen Bug: 30374655 Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
* | Adjusting the text shadowsSunny Goyal2016-07-251-11/+14
|/ | | | | Bug: 30192204 Change-Id: I4a12246521c41146b801f326a3d37e88aa49b727
* Add drag handle to shortcuts.Tony Wickham2016-07-201-4/+8
| | | | | | | | Also use short text if long text is ellipsized. Bug: 30212144 Bug: 28980830 Change-Id: I213766bca0561d284d1da883ca37b0a42d886129
* Initial changes to tweak layout.Winson2016-07-201-1/+18
| | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Updating the content description of disabled iconsSunny Goyal2016-07-131-26/+18
| | | | | Bug: 27644457 Change-Id: I03aec29e0ea6017b51dcd7567967a067e478cefd
* Long-press on an app to reveal its shortcuts.Tony Wickham2016-06-291-0/+11
| | | | | | | | | | | | | | | - Add ShortcutsContainerListener to icons on workspace, folders, and all apps. This handles long-press and forwards following touches to the DeepShortcutsContainer that is created. - Drag over shortcut before lifting finger to launch it. - Shortcuts are rendered in pill-shaped DeepShortcutViews, which are inside DeepShortcutContainer on DragLayer. - The shortcut container orients above or below the icon, and left or right-aligns with it. Biases for above + left-align. - Long press a DeepShortcutPill to drag and pin it to the workspace. Bug: 28980830 Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
* Merge "Add support for launcher shortcuts." into ub-launcher3-calgaryTony Wickham2016-06-221-9/+8
|\
| * Add support for launcher shortcuts.Tony Wickham2016-06-211-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This CL has no UI but provides the necessary backing for one. - Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from ITEM_TYPE_SHORTCUT. We can reconsider these names. - Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts (pinned shortcuts are always cached in a HashMap). - DeepShortcutManager queries for shortcuts and other things like pin them. In a future CL it will use the cache, but for now it simply makes an RPC for all queries. - LauncherModel maintains counts for pinned shortcuts, pinning and unpinning when counts reach 1 or 0, respectively. - LauncherModel maintains a map of components to lists of shortcut ids, which Launcher gets a copy of after it is changed in the background. This will allow us to know how many shortcuts an app has immediately, and query for details as the UI is animating. Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
* | Update Launcher to use theme colors.Andrew Sapperstein2016-06-201-1/+1
|/ | | | | | | | | | | | | | | | | | | Instead of using hard-coded variants of colors, use the theme color that corresponds (colorAccent, colorPrimary, etc). Updated: - "Search for more apps" text - App info drop target hover color - PageIndicatorDots - All apps & widget scroll bar & scroll popup colors - All apps section text color - widget picker background color TODO: - widget picker header color BUG: 28625102 Change-Id: I74b543ff71b8caef8cd950c8183ac84c759cb4d5
* Moving LauncherAccessibilityDelegate to Launcher to associate it withSunny Goyal2016-06-171-1/+1
| | | | | | activity lifecycle. Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
* Chaning shadow algorithm to reuse bitmap instead of creatingSunny Goyal2016-02-261-0/+1
| | | | | | | a new bitmap on every tap Bug: 27239742 Change-Id: I8e4259b79b1048e5fa82e7a1c8934ec7c52995be
* Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies ↵Sunny Goyal2016-02-231-0/+1
| | | | | | | | breakage" This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658. Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
* Reverting refactoring of Folder and FolderIcon to avoid dependencies breakageSunny Goyal2016-02-171-1/+0
| | | | Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
* Refactor FolderIcon to separate the preview effect into it's own classAdam Cohen2016-02-121-1/+1
| | | | | | | -> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
* Making some view properties exported.Sunny Goyal2016-02-091-0/+5
| | | | | | These will be visible in hierarchy viewer Change-Id: I940724a7f61d67b8502d77be203a94875bc92668
* Grey out suspended applications.Kenny Guy2016-01-251-6/+10
| | | | | | | | Grey out application shortcuts and all apps entries for packages that are suspended. Bug: 22776761 Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
* Merge "Fixing All apps not respecting scaled icon size" into ↵Sunny Goyal2015-12-101-1/+1
|\ | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: 49750ce75e * commit '49750ce75e7413ad3c4fe4be31a2e1d73312794b': Fixing All apps not respecting scaled icon size
| * Fixing All apps not respecting scaled icon sizeSunny Goyal2015-12-101-1/+1
| | | | | | | | Change-Id: I3d05c713939fd69d04f5896cdc5db91480b0d4d1
* | Merge "Fixing disabled icon getting changed back to normal state on long ↵Sunny Goyal2015-10-211-0/+3
|\| | | | | | | | | | | | | | | | | press" into ub-launcher3-burnaby-polish am: 5c6f99e290 * commit '5c6f99e29077aea5ab946e2ec30a5705e95a822b': Fixing disabled icon getting changed back to normal state on long press
| * Fixing disabled icon getting changed back to normal state on long pressSunny Goyal2015-10-201-0/+3
| | | | | | | | Change-Id: I4f35c1cbecfef7891f8b1187ba3be0af695d4fd5
* | am eaaed098: Merge "Adding progress information for preload icons in content ↵Sunny Goyal2015-10-011-0/+7
|\| | | | | | | | | | | | | description" into ub-launcher3-burnaby-polish * commit 'eaaed098a633eb5a5759778d5b015e11373a5e3d': Adding progress information for preload icons in content description
| * Merge "Adding progress information for preload icons in content description" ↵Sunny Goyal2015-10-011-0/+7
| |\ | | | | | | | | | into ub-launcher3-burnaby-polish
| | * Adding progress information for preload icons in content descriptionSunny Goyal2015-10-011-0/+7
| | | | | | | | | | | | | | | Bug: 24086091 Change-Id: Id8fb024973f4affd998627d30077e2764b07edc4
* | | am 2c4d2ccd: Merge "Don’t create dummy app info." into ↵Winson Chung2015-09-301-0/+11
|\| | | | | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish * commit '2c4d2ccd90e60541efffb980b70270d0bfe4e585': Don’t create dummy app info.
| * | Don’t create dummy app info.Winson2015-09-301-0/+11
| |/ | | | | | | Bug: 24539514 Change-Id: I5d14a4d9993e072451f8e7ed9a4cea219ae5d246
* | am c0880491: Highlighting sectioned apps on fast-scroll.Winson2015-09-291-75/+56
|\| | | | | | | | | * commit 'c088049113c261331b5685e64050d14a31cd72df': Highlighting sectioned apps on fast-scroll.
| * Highlighting sectioned apps on fast-scroll.Winson2015-09-281-75/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - This CL fixes an old assumption we had about the height of rows in AllApps, and ensures that we account for the difference in height between the predictive icons and the normal icons. - In addition, we refactor FastBitmapDrawable to have multiple states, which it manages in drawing itself, including the press state and fast scroll focus states. And we also refactor some of the fast scroll logic in the all apps recycler view out to its own class. Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
* | Refactor StylusEventHelper to provide onButtonPress/Release methodsMady Mellor2015-08-211-2/+2
|/ | | | | | | | This will enable an easier migration to the new M APIs for identifying button presses from stylus / other tools. Bug: 20430722 Change-Id: I41cfa6eff8d76bb83cf1bdaf6623ec1092ed554c
* Version code cleanupSunny Goyal2015-08-171-1/+1
| | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* Loading high resolution icons for first 3 items in a folderSunny Goyal2015-08-041-0/+9
| | | | | | | | | > Sometimes a folder gets rearranged, without updating the model, like when an app in uninstalled. In that case, we need to update the icons for folder items, which were previously hidden Bug: 22813360 Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
* Refactoring fast scroller.Winson Chung2015-06-231-1/+82
| | | | | | | | | | | | | - Fixing issue with fast scroller not fitting name width. - Refactoring fast scrolling/scroll bar code out of base recycler view - Adding animations to fast scroller to match design - Smooth scrolling when jumping between app rows - Fixing issue with fast scroller jumping when you first pick it up - Fixing issue with wrong background paddings being used Bug: 21874346 Bug: 22031923 Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
* Merge "Ensuring that we use the screen width more optimally in AllApps." ↵Winson Chung2015-06-051-1/+0
|\ | | | | | | into ub-launcher3-burnaby
| * Ensuring that we use the screen width more optimally in AllApps.Winson Chung2015-06-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | - Fixing issue with prediction bar height being calculated incorrectly - Fixing issue where the prediction bar divider was not drawn exactly between the bar and the first row of apps - Removing padding to allow scrollbars to reach full height Bug: 20222023 Bug: 21335377 Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e
* | Ensure that we use the system long press duration when dragging from AllApps.Winson Chung2015-06-051-0/+6
|/ | | | | | | - Removing some old code out of LauncherAppState Bug: 21559400 Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2
* Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-5/+6
| | | | | | | | | > 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
* Merge "Stylus support: creating and setting listeners for stylus button ↵Mady Mellor2015-06-031-1/+12
|\ | | | | | | press" into ub-launcher3-burnaby
| * Stylus support: creating and setting listeners for stylus button pressMady Mellor2015-06-021-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Adding context for app launches.Winson Chung2015-06-021-2/+0
|/ | | | | Bug: 21492784 Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
* Refactoring DeviceProfileAdam Cohen2015-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | -> 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
* Load PackageItemInfo in background thread to prevent ANRHyunyoung Song2015-05-211-1/+1
| | | | | | | | | | | - Decoupled widget model from widget view, and placed the creation to LauncherModel. - As a result packagemanager operation, iconcache retrieval is all done inside LauncherModel on background thread b/21311085 b/21325319 Change-Id: I294698527db58b89f3da558090a367530c058776
* Merge "Adding drop shadow effect in allapps" into ub-launcher3-burnabySunny Goyal2015-05-191-3/+12
|\
| * Adding drop shadow effect in allappsSunny Goyal2015-05-151-3/+12
| | | | | | | | Change-Id: Ic7a9b6e23d925d27a8dcbd418d2609e43917ac45
* | Preventing relayout when loading high-res iconsSunny Goyal2015-05-151-0/+11
|/ | | | | Bug: 21133230 Change-Id: I1ec4dbfd28c42fa1c0e28b3fa746c0bc5dfaba7c
* Optimizing shadow generation by reusing bitmap.Sunny Goyal2015-05-151-1/+1
| | | | | | | | > 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
* Various lint error fixes.Sunny Goyal2015-05-141-2/+9
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Using BubbleTextView for widget section headersSunny Goyal2015-05-121-6/+23
| | | | | | > Loading highres icons on the worker thread. Change-Id: I5b68a86820aa4c132c156339e497354cf57f0fca
* Fixing issue with font size.Winson Chung2015-05-121-2/+2
| | | | Change-Id: I3f32840333f96ce49dfb915da3f335de0c0b022e
* Various icon size changesSunny Goyal2015-05-111-29/+24
| | | | | | | 1) Setting different icon and text size for workspace and all apps 2) Setting padding during BubbleTextView inflation Change-Id: I59da6986b0d98e8e2aa6065743bb799a6bf06a37