summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/AbstractFloatingView.java
AgeCommit message (Collapse)Author
2018-01-02Add system shortcuts when long pressing recent iconTony Wickham
We add a floating view for the menu that aligns with the task icon. If available, the following shortcuts are present: - Widgets - App info - Install (for instant apps) It is designed to be straightforward to add to this list. Bug: 70294936 Change-Id: I56c1098353d09fc564e0e92e59e4fcf692e486ba
2017-12-22Adding support for auto-cancelling an action mode when interacting with launcherSunny Goyal
Change-Id: Iba0207e36e9e5bd94bd9016318a4e00c6e1f6393
2017-12-06Moving discovery bounce logic to a separate class.Sunny Goyal
Removing special transition handling around discovery bound to avoid inconsistant UI state Change-Id: Ia40bcb0719076021a6c96f1bd16d44da0286a209
2017-12-04Bottom user education view shown in work tabTony Mak
Introduced a BottomUserEducationView for similar use case. Screenshot: https://hsv.googleplex.com/4856820942241792 BUG=69963630 Change-Id: Ia818ee44fa5ce97ad1778f33e6a9a3a36cea5017
2017-11-10Initial changes for handling touch events.Sunny Goyal
When the touch passes a threashold, we take a snapshot and start the launcher activity. The launcher displays the snapshot on top of its UI. As we get further touch events, we move this snapshot and the hotseat in reponse. Change-Id: I4623676227000afd52805a414a4de499081feced
2017-10-13Converting widget panel into a floating viewSunny Goyal
> The widget panel is only inflated when needed > Using the swipe up/down interaction for widgets tray > Removing additional view wrappers from all-apps > Widget tray is preserved across activity recreation > Launcher no longer has WIDGET state, the actual code around the states will be removed in a follow-up cl Bug: 67678570 Bug: 67585158 Change-Id: Ia29a7c33ec81e6c53cc24e2906b7022b6f41755b
2017-10-10Converting PopupContainerWithArrow into a base class so that it is easierSunny Goyal
to create other types of popup Bug: 67585158 Change-Id: I966ae7bb90f941951b26feaf71b3ea30c3f3c0cc
2017-10-02Allowing the widgetBottomSheet to be draggedSunny Goyal
even when the touch is started from outside the panel Removing various instanceOf checks in onNewIntent and onBackPress and moving all the corresponding logging in the FloatingView This simplifies handling of panel specific log and avoids missing a particular panel type in the if-else statement. Bug: 64751884 Bug: 64751923 Change-Id: I98f5aae18560a64be73c9efcf495479740d49a00
2017-04-17Rename WidgetsAndMore to WidgetsBottomSheetTony Wickham
(It only contains widgets now.) Bug: 35766387 Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
2017-03-30Add support for system shortcuts in popup containerTony Wickham
- Currently the system shortcuts are just widgets and app info - As shortcuts, they live in ShortcutsItemView - They are populated either as icons only (if there are deep shortcuts) or as icons + text - Widgets are disabled until binding them is complete (we request for them to be bound on long-press now). We should revisit this. Bug: 34940468 Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
2017-03-30Add WidgetsAndMore bottom sheetTony Wickham
- Contains two rows, one for widgets, and one for "configurable shortcuts" that have customization activities - Extends AbstractFloatingView and uses VerticalPullDetector for touch interactions - No way to show this currently; will add options to popup in followup Bug: 34940468 Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd
2017-03-01Merge deep shortcuts in rounded rectTony Wickham
- DeepShortcutViews are added to ShortcutsItemView, which is in PopupContainerWithArrow - Moved some shortcut-specific logic to ShortcutsItemView (namely, touch/long-click handling for draggin shortcuts) - Moved round-rect clipping to PopupItemView - Removed collapseToIcon() logic, including PillWidthRevealOutlineProvider, which was only used for that purpose. It isn't necessary now that the deep shortcuts have no background themselves. - Replaced focus pill drawable with ripple effect on shortcuts and notification view. Bug: 35766387 Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
2017-02-07Add basic logs for tap outside action.Jon Miranda
Change-Id: I6288610b9870c3abe88794c53309b1d76dd2780f
2017-01-25Refactor DeepShortcutsContainer to PopupContainerWithArrowTony Wickham
- 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
2016-10-10Refactoring floating view opening/closing logicSunny Goyal
> Creating a base view for floating panels with some common methods > Moving the getOpen method to individual classes > Moving the folder icon animation logic to folder icon > Moving all the logic related for opening folder to Folder class Change-Id: I898dfb6870b857cb921d2729b89618bc43ff2e88