Commit Graph

602 Commits

Author SHA1 Message Date
TreeHugger Robot efbfcb838d Merge "Sanitizing various search container ids and layout names" into ub-launcher3-dorval-polish 2017-07-04 09:06:53 +00:00
Tony Wickham aa2272f81c Popup visual changes
- Don't remove elevation during animation (b/62905720)
- Other adjustments (b/35766387)
  - Add "gutter" between notification and shortcuts
  - Change shortcuts to always be primary color (e.g. white)
  - Scale down shortcut icons when notifications present
  - Apply icon extracted color to "Notifications" header

Change-Id: Idf791dc76d15d05d246000ad73810916d7cd1750
2017-06-27 19:43:18 -07:00
Sunny Goyal c7b8df8329 Sanitizing various search container ids and layout names
Bug: 63014381
Change-Id: Ia75a8a048c7a85c6324f8861abd2bcf1721032fa
2017-06-27 11:11:32 -07:00
Sunny Goyal 89d5c5a31b Updating fast scrollbar UI in Landscape
Creating a separate view for FastScrollBar and moving all the relavant logic in
the view.
For protrait, the touch handling is delegated by the recycler view just like before.
For landscape, the dcrollbar does not overlay with recyclerView and handles the touch
itself

Bug: 37015359
Change-Id: Ie1981326457ba739bdf0ac8063db1065f395f133
2017-06-26 14:56:36 -07:00
Tony Wickham 7a0ec3f28c Merge "Add dark widgets theme" into ub-launcher3-dorval-polish 2017-06-26 21:34:59 +00:00
Tony Wickham 093c3ac7c3 Add dark widgets theme
Bug: 62907264
Change-Id: I9831e071eab9a746d1aacab7d023371cc4a631ef
2017-06-26 17:50:29 +00:00
TreeHugger Robot 6828cbb751 Merge "Landscape grid changes for Workspace/All Apps." into ub-launcher3-dorval-polish 2017-06-23 18:59:12 +00:00
Jon Miranda b28c4fcf35 Landscape grid changes for Workspace/All Apps.
This is the just first CL to get eyes on the changes.
Next CL will update the All Apps to be full width.

Bug: 37015359
Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
2017-06-23 11:47:48 -07:00
Sunny Goyal 9314b7c01d Separating double shadow logic for BubbleTextView in a separate subclass
This allows better customization and reuse of the double shadow logic and simplified
various attribute management

Change-Id: I5e277d8399756385452d8bb8c0a0107234a76d34
2017-06-23 10:37:25 -07:00
Jon Miranda 7efd29ad85 Set clipToPadding false for FolderPagedView.
Bug: 62867021
Change-Id: I2d897f4c0e4d844f6dd3c2aab97450637796ad02
2017-06-21 12:12:27 -07:00
Tony Wickham 5a1ca5756e Adjust some sizes in popup
- Increase main notification height and pad text/icon bottom
- Reduce shortcuts height when there are notifications to 48dp
  - When the last notification is dismissed, animate back to 56dp

Bug: 35766387
Change-Id: I84f843c042137fdf93fa720802eb2f19337197b4
2017-06-19 18:42:46 -07:00
Tony Wickham 034d74da19 Merge "Show more shortcuts when last notification is dimissed" into ub-launcher3-dorval-polish 2017-06-20 01:36:55 +00:00
Jon Miranda 0966072c91 Portrait grid changes for Workspace/All Apps.
Bug: 37015359
Change-Id: Ifbdd0e71c36e532b189e02283e3eeb562ebe2654
2017-06-19 17:02:45 -07:00
Sunny Goyal 1a8f6fb736 Updating the fast scroll bar UI
Bug: 37015359
Change-Id: Iec0748f04ebe9a3eef13ff759da3cab6ff28c3a1
2017-06-16 14:57:34 -07:00
Tony 887bd1fe1a Show more shortcuts when last notification is dimissed
We currently only show 2 shortcuts when notifications are
present, but support up to 4 otherwise. With this change,
the hidden shortcuts are added back after dismissing the
notifications, instead of only after closing and reopening
the container.

To ensure the transition is as elegant as possible, we also
separated the shortcuts header from the rest of the shortcuts.
That way we can reveal the new shortcuts without removing the
header (the shortcuts come out from behind the header).

Bug: 38036250
Change-Id: Ie9ab35f9be57cec1d5345e9e70e84e09ea52c9fc
2017-06-15 16:21:34 -07:00
Sunny Goyal 8b4342c943 Updating the UI for Add-to-homescreen dialog
> Adding scrollView so that the contents are accessible in multi-window
  mode as well
> Updating the padding to be same as an alert-dialog

Bug: 36725328
Change-Id: I83d32156aa9cb751daf6589bc226d7cde69e9b53
2017-06-15 14:51:28 -07:00
Tony Wickham 7fd4bb625d Align widgets labels to view start for RTL
Bug: 62593142
Change-Id: I058be62904d0c3a04837331e2da884aca21a598c
2017-06-15 11:30:37 -07:00
Sunny Goyal 325b5c7a66 Some theme fixes
> 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
2017-06-11 20:24:02 -07:00
Mario Bertschler 93e39ecdeb Title style for text setting font family.
b/62389480

Change-Id: I93135d99487a18e2a74d0e197955898cec40072b
2017-06-09 11:23:47 -07:00
Mario Bertschler 54ba601a99 Dark text support for caret, drop target text and cell layout drop outline
Change-Id: I1bcad657b6e49be6fa93cafe9d8ae304604be34d
2017-06-08 10:54:09 -07:00
Mario Bertschler a693694502 Dark color on super light wallpaper support
Change-Id: I0fdfa9abefb72e06c45b1f635ac97e2acfa97f05
2017-06-07 15:25:07 -07:00
TreeHugger Robot da84e97947 Merge "Removing QsbBlockerView" into ub-launcher3-dorval-polish 2017-06-07 00:47:56 +00:00
Sunny Goyal 966d901af0 Removing QsbBlockerView
> Removing workspace state change listener. State change happens with hardware layer,
  so children should not be calling invalidatge() during the animation
> Moving QSB inside the QSB and removing a floating layout

Bug: 37616877
Change-Id: I9af3522a05dafa5796586bb64f512d98688caf79
2017-06-06 16:48:25 -07:00
Tony Wickham 90038ebab2 Add support for popup dark theme
Bug: 62380473
Change-Id: Ib22e9b82841bf10b7f139638f268f0a878e3c6b9
2017-06-06 16:34:20 -07:00
Tony Wickham 79b176e42c Fix visibility of notification footer divider
Now it is only visible when the notification footer is present,
instead of always being visible.

Change-Id: Ie85ff31918901115cdfe55b36e75aa80b43e7b13
2017-06-05 17:54:45 -07:00
Tony acaf5b3a37 Remove gap between popup items
- Unround interior corners
- Update colors (shortcuts are gray when next to
  notifications, notifications always white)
- Clean up animation to animate entire popup with
  simple reveal instead of individual items
  animating with reveal and icon scale

Bug: 35766387
Bug: 36110804
Change-Id: I33685d53e2db3904731676123dc230be4dabb5d4
2017-05-31 15:11:43 -07:00
Mario Bertschler 418d443d2f Revert "Allapps motion changes for landscape"
This reverts commit d15dccf10e.

Change-Id: I04c06d419bc636929259bc5f4fdce982d97ef33f
2017-05-24 17:56:56 +00:00
Mario Bertschler d15dccf10e Allapps motion changes for landscape
Bug: 38230696
Change-Id: I82e36c240c934ff6b86b55e0a0f07391fd11ec82
2017-05-24 10:30:13 -07:00
Jon Miranda 4e11c2738a Add physics motion to items in all apps.
Motion applied to:
- Icons
- Prediction icons
- Prediction divider

Bug: 38349031
Change-Id: I376e6e39080c8c80463a0ce8b104b05e4d576f17
2017-05-23 10:02:51 -07:00
Mario Bertschler e5c411e626 Minor accessibility change for app discovery item
am: fc2b3d2b8a

Change-Id: I8ebb397d368f83e7602f7f6fa6658ac89493d498
2017-05-22 17:58:38 +00:00
Mario Bertschler fc2b3d2b8a Minor accessibility change for app discovery item
Bug: 38345854

Change-Id: Ib200b5a6295eb26650c7f28d0b7823b489c70cda
2017-05-22 09:21:01 -07:00
Tony Wickham fda3107c8b Merge "Make expanded system shortcuts clickable" into ub-launcher3-dorval
am: 440052ce5d

Change-Id: I5d53a468bb4aa3060e3e7e618bfdbdb537a5aadc
2017-05-19 19:36:38 +00:00
TreeHugger Robot 440052ce5d Merge "Make expanded system shortcuts clickable" into ub-launcher3-dorval 2017-05-18 18:34:04 +00:00
Tony Wickham cd58d0d4e5 Make expanded system shortcuts clickable
The textview on top was consuming the clicks, so we set it to
not be focusable (clicks are handled by the parent).

This regression was caused by a TextView bug introduced in
ag/2247666, which set clickable=true if focusable=true.

Bug: 38385679
Change-Id: I0a946073919dabcd19b47cd7df2a1fcac6946cd5
2017-05-18 11:16:58 -07:00
Mario Bertschler 8acf8b506d Design adjustments for transition from workspace to
All apps.

Change-Id: I0aeb8da7f0eebdf677ca7bda06fb538f08a6ee51
2017-05-16 16:13:11 -07:00
Mario Bertschler 7f91393c55 Merge "Minor polishment on app discovery UI." into ub-launcher3-dorval
am: 8ffddbb7c2

Change-Id: I611a4707882a0fb5c78c223ebd9f5c8e0e67d411
2017-05-16 20:13:42 +00:00
Mario Bertschler 0287a44c81 Minor polishment on app discovery UI.
b/38341964
b/38342208
b/38341681

Change-Id: I8dfe4f5431cbfa96573c0461fddd410367c9ad13
2017-05-16 11:48:23 -07:00
TreeHugger Robot 9968ed0932 Merge "Adding listener support for color extraction changes Changing the apps-search layout to use theme attribute instead of hard coded layout id" into ub-launcher3-dorval-polish 2017-05-11 19:46:28 +00:00
Tony e37d2b9f32 Merge "Visual updates for popup" into ub-launcher3-dorval
am: 5cfde85cb6

Change-Id: I4e97cb52054b5c5ff467f3481b92730f6f9a3e8e
2017-05-10 01:19:41 +00:00
Tony 0b8a6fe532 Visual updates for popup
- Update some dimens
  - Increase left padding for shortcuts
  - Adjust arrow and notification ellipsis offset accordingly
  - Align shortcut dividers to be same width as text
  - Notification text 14sp instead of 15sp
  - Increase width of popup by 12dp
- Shortcuts text 87% black instead of 54%
- Arrow has same color as attached side, so takes on header
  gray instead of white when appropriate

Bug: 37753827
Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
2017-05-09 20:02:23 -05:00
Sunny Goyal 60820d796f Adding listener support for color extraction changes
Changing the apps-search layout to use theme attribute instead of hard
coded layout id

Bug: 37616877
Change-Id: Iae601758303f83a2774635f0d88f74d99fc643c3
2017-05-09 12:41:50 -07:00
Sunny Goyal 161f96bc77 Moving apps search related logic into a custom layout file
This will allow derivative projects to easily change the search behavior
by simply overriding the xml file

Bug: 37616877
Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
2017-05-08 14:43:32 -07:00
Tony e5931a552a Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval
am: b77aa69eee

Change-Id: Ie206f8f66b45ad9dfe2c085b5087a4600c0d41b0
2017-05-04 23:09:13 +00:00
Tony 9d3743c3a8 Fix center-align issue in widgets bottom sheet
- Remove paddingStart
- To add padding for multiple widgets, add empty view to scrollview

Bug: 37918677
Change-Id: I5ec1208765874dda1c4439f60aaeb989c06ccd63
2017-05-04 15:53:15 -07:00
Mario Bertschler 48198d004a All Apps transition with gradient and scrim.
The transition is behind a feature flag and
turned off by default.

Change-Id: I155840ba82b5a573d874376797db5f739a52d706
2017-05-03 10:32:57 -07:00
Jon Miranda 45cc90f0be Fix bug where system shortcuts text size is set to 0 in MW mode.
am: da8261cce3

Change-Id: I1dfb3d6b655ebba8b8a9637a8e3a61fe7e0355e5
2017-05-02 20:49:49 +00:00
Jon Miranda da8261cce3 Fix bug where system shortcuts text size is set to 0 in MW mode.
By default, the BubbleTextView sets the display to Workspace
mode, which sets the text size to be 0 in MW mode.

Bug: 37898830
Change-Id: I665611b9986f1025d54b7ddb80746d4016003313
2017-05-02 12:49:33 -07:00
Sunny Goyal da1dfa32d0 Creating a custom drawable to customize shadow.
> Fixing DrapTargetBar set to visible (with alpha = 0) in the start
causing unnecessary draw

Bug: 37616877
Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
2017-04-27 05:35:28 -07:00
Tony Wickham 1c2291de86 Rename WidgetsAndMore to WidgetsBottomSheet
am: 343a77e609

Change-Id: I3d0c3e3a4ec1225781421567cfd9f2ea1d676bc0
2017-04-17 18:59:05 +00:00
Tony Wickham 343a77e609 Rename WidgetsAndMore to WidgetsBottomSheet
(It only contains widgets now.)

Bug: 35766387
Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
2017-04-17 11:44:41 -07:00
Tony Wickham 14780f60c5 Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval
am: 3741f8d9da

Change-Id: If6fbb0dcd5ea8a947c586bddc624b98436863f92
2017-04-13 23:07:57 +00:00
Tony Wickham c66c3e2ba4 Fix build - move system shortcut icon colors to theme
Change-Id: Iae248e5fdd57310adeb898305deee4c0eaee5318
2017-04-13 12:24:42 -07:00
Tony Wickham b5ac4ed5ec Update widgets bottom sheet to match redlines
- Remove "Configurable shortcuts" row, and put all widgets in one row
- Update some sizes and colors and text
- Center widget row if only one widget

Bug: 35766387
Change-Id: Ic3850feadee1cbbbdd68a772f597741d54949703
2017-04-13 12:12:52 -07:00
Tony Wickham bb3c1f8f7c resolve merge conflicts of ce44516dd to ub-launcher3-master
Change-Id: I6f4455c1d4bedf778850acbb1e1c7372d532e13a
2017-04-11 17:26:50 -07:00
Tony Wickham ce44516dd8 Update popup to match redlines
- Update specs in dimens.xml and colors.xml
- Move notification count to top right, and keep "Notifications" in left
    - Also removed NotificationHeaderView and instead use FrameLayout
- Limit to 2 shortcuts instead of 3 if there are notifications
- Use SP instead of DP for text (b/35869307)

Bug: 35766387
Change-Id: I892640933ad6351946af3df6c805b98bb4e7cb50
2017-04-11 16:44:38 -07:00
Tony ca4e6b4b59 resolve merge conflicts of 26b174659 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ifb24f291b096b979044e5c87ec58c24e9c479728
2017-03-30 18:10:05 -07:00
Tony Wickham 26b1746593 Add support for system shortcuts in popup container
- 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-30 16:35:56 -07:00
Tony Wickham 52f0130a76 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval
am: d73fbb5f97

Change-Id: I5d1bad3ea83e672076dbd3b6f2d80d5149f3921c
2017-03-30 23:26:12 +00:00
Tony Wickham 50e5165b78 Add WidgetsAndMore bottom sheet
- 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-30 15:48:53 -07:00
Mario Bertschler d6756af623 Show recently used instant apps provided by the app discovery service in the same section as installed apps.
am: 853c13d427

Change-Id: I852e85f5b715d7f9ecc903bb0b9020e87c19cd99
2017-03-23 23:30:09 +00:00
Mario Bertschler 853c13d427 Show recently used instant apps provided by the app discovery service
in the same section as installed apps.

Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e
2017-03-23 15:41:17 -07:00
Sunny Goyal afc3f09240 Adding support for showing the widget preview based on the provided RemoteViews
am: c65a0085d7

Change-Id: Iabea96bb74294e2775a08427c17e154020d9bc40
2017-03-17 18:41:31 +00:00
Sunny Goyal c65a0085d7 Adding support for showing the widget preview based on the provided RemoteViews
Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
2017-03-17 11:25:29 -07:00
Jon Miranda 477d2cbfd8 Allow TalkBack to read sectional headings on Widgets screen.
am: efd5cbf55c

Change-Id: Ib0bd61b94739ff4fd3b9ce866e33f4b7088a6846
2017-03-16 22:39:07 +00:00
Jon Miranda efd5cbf55c Allow TalkBack to read sectional headings on Widgets screen.
Bug: 35027834
Change-Id: Ice512bac83d818a4f8dca6d5f4b041a6bfa4df67
2017-03-16 15:21:25 -07:00
Sunny Goyal 4eaacc7485 Merge "Defining HomeScreenElementTheme for elements which appear on top of wallpaper" into ub-launcher3-master 2017-03-13 18:58:03 +00:00
Mario Bertschler 0fc6f684e7 App discovery integration in All Apps search
This is the basis for app discovery integration while searching in all apps.
This does NOT include binding to the actual service and retrieving results,
but instead provides all the UI to show suggested instant apps and apps
from a store with star rating and pricing.

Change-Id: I1605b52848491acee4ac1d15c0112e6a768363f6
2017-03-03 13:05:57 -08:00
Tony Wickham 9407d4ab57 Update notification visuals (part 2)
- 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
2017-03-02 11:27:16 -08:00
Tony Wickham 51889b0be8 Merge deep shortcuts in rounded rect
- 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-03-01 10:16:16 -08:00
Tony Wickham 7f3526a1a4 Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
  left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height

Bug: 32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
2017-02-24 12:09:06 -08:00
Sunny Goyal 2a76e3fbc6 Removing custom state definition from FastBitmapDrawable
> For Fast scrolling, using state list animator defined in xml
> For Pressed state, using onState change method in a drawable

Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
2017-02-23 16:15:25 -08:00
Sunny Goyal 9b29ca5add Defining HomeScreenElementTheme for elements which appear on top of
wallpaper

> Using HomeScreenElementTheme for workspace items
> Fixing view inflation where wrong layout inflater was being used

Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
2017-02-17 11:37:30 -08:00
Sunny Goyal 1f3f07d47c Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
2017-02-16 15:24:37 -08:00
Sunny Goyal d5d5e22715 Updating widget tray theme
Using standard theme attributes rather than custom color codes, so
that it plays nice with system theme changes.

Bug: 34819119
Bug: 34897402
Bug: 21446746
Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
2017-02-09 10:16:22 -08:00
Tony Wickham 9438ed414f Add swipe-to-dismiss notifications in popup menu.
- 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
2017-01-25 17:36:31 -08:00
Tony Wickham 540913eadf Refactor DeepShortcutsContainer to PopupContainerWithArrow
- 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
2017-01-25 11:21:47 -08:00
Fan Zhang a14281cacf Fix color for widget tray to match Default.Settings theme
Change-Id: Ief4079853a8275a75c27d3c22b57a72a35274307
Fix: 34672511
Test: visual
2017-01-24 15:55:55 -08:00
Sunny Goyal 65513ba58c Using WidgetCell in the Pin Item confirmation prompt for a consistent UI
Also fixing some platform API changes in PinItemRequestCompat

Bug: 33584624
Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
2017-01-20 15:44:15 -08:00
Sunny Goyal a2441e88ff Updating widget preview generation to not embed any badge.
Instead drawing badge in the view directly.

This will allow us to reuse the same preview when we do not want to draw
badges. This also simplified badging of shortcut config activities.

Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
2017-01-19 14:00:40 -08:00
Sunny Goyal 278359539c Adding support for requesting addition of shortcut/widget
on the workspace.

Bug: 33584624
Change-Id: I664366822fe8088742faff2cce006239ab0771bc
2017-01-18 18:38:34 -08:00
Sunny Goyal c13403c612 Defining various modes for CellLayout: Workspace, Hotseat & Folder
> Moving the definition of modes to xml
> Defining attributes in xml

Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
2016-11-21 15:20:16 +05:30
Sunny Goyal f8d5370a9f Merge "Catching TransactionTooLargeException when binding widget." into ub-launcher3-master 2016-11-15 19:07:32 +00:00
Sunny Goyal 712ee53c67 Catching TransactionTooLargeException when binding widget.
A widget can potentially bypass binder size limit with remote views when
using partual updates (as the merging happens on the system service). In
such a case, show the widget in error state.

Bug: 32365088
Change-Id: Id1c4425958a06463273731464e31f05908c35ec7
2016-11-09 12:43:11 -08:00
Jon Miranda 068953bccc Match AllApps start and end paddings.
Padding was only on the end to account for the scrollbar. Adding
padding to the left allows the icons on AllApps to align with the icons
on the workspace.

Bug: 32640697
Change-Id: Iced9287979a11afda98bc6bfc926fe87182bee68
2016-11-03 16:20:15 -07:00
Jon Miranda df3bc52ca9 Center overview panel buttons.
Bug: 32313927
Change-Id: Ib6e82b12ef45d2fe59e46b5b2dd8945047eeb981
2016-11-02 13:39:46 -07:00
Sunny Goyal 2e013ea7f6 Alienating QSB
> Moving all QSB widget handling code in a separate package
> QSB is handled on a separate host, independent of the main
host. This allows us to safely reset either of the two hosts
> Also removing the logic around closeSystemDialog:
   Launcher does not use any panels which need closing
   System sends an onActivityResult(RESULT_CANCELLED), we do
   not need special handling for waitingForResult
> Fixing bug when auto-generated qsb widget id was not being saved

Change-Id: I2d889b7b1c80b14785d14f35624142a4b78452de
2016-10-18 11:44:21 +01:00
Sunny Goyal 2a65020da1 Removing the section break UI support
This was an exploration for an alternative UI in all apps, where we
show section headers before every section. This was never released.

Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016
2016-10-13 09:39:36 -07:00
Sunny Goyal 3f0a53fa44 Making the width of the fast scroller popup as wrap_content
Adding minWidth and width=wrap_content, so that the popup can
grow for wider characters.

Change-Id: I6e0c4087df51e37f696c47f20f146f32d41e8bc8
2016-10-11 15:51:29 -07:00
Sunny Goyal f8fa9e4124 Merge "Simplifying fast scroller logic" into ub-launcher3-master 2016-10-11 22:09:48 +00:00
Sunny Goyal 802f3255a7 Updating the folder cell dimensions to be closer to a square
am: 68f240eb54

Change-Id: I68047a8eba8b3a0c8117fedbc45b6100dd04b023
2016-10-10 21:17:28 +00:00
Sunny Goyal 5d9fb0e92f Simplifying fast scroller logic
> Using a separate view for drawing the popup. This allows us to use elevation
  property instead of drawing the shadow as bitmap.
> During the thumb animation, invalidating the full track width, instead of
  invalidating the track and thumb separately.
> The thumb path is calculated at 0,0 and drawn using canvas.translate().
   This avoids recalculating the path on every scroll.

Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6
2016-10-10 14:17:16 -07:00
Sunny Goyal 08ca40f976 Refactoring AppWidgetResizeFrame
> Defining the layout in xml
> Simplifying the touch handling calculations

Change-Id: Iccfd82161d1e678d77ad6ff63f76e04ad905f9d8
2016-10-07 15:16:29 -07:00
Sunny Goyal 68f240eb54 Updating the folder cell dimensions to be closer to a square
Bug: 31813976
Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
2016-10-07 13:36:56 -07:00
Jon Miranda aca2145f2a Restore AllAppsContainerView UI to match spec.
Did some refactoring with Sunny's help.

Change-Id: Ie4c90c316f1e381829836e11c83eaaedfed4d621
2016-09-26 16:45:10 -07:00
Jon Miranda 48542731c5 Uses a TransformingTouchDelegate to extend touch target for widgets list.
am: 0ef81fdc22

Change-Id: I33962020ff1cf75e46254c24687a53fd5b2088fa
2016-09-19 21:43:54 +00:00
Jon Miranda 0ef81fdc22 Uses a TransformingTouchDelegate to extend touch target for widgets list.
The widget row contents were being clipped, which made it seem like
the horizontal scroll was broken.

Bug: 30023607
Change-Id: I00b0c334bbb0faf166d4cd168392cc494ed732e0
2016-09-19 13:08:43 -07:00
Sunny Goyal baec6ffae2 Updating the paddings in folder cell
> 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
2016-09-16 12:05:02 -07:00
Tony Wickham 285c76dded Merge "Add outline to shortcuts when focused." into ub-launcher3-calgary-polish 2016-09-08 17:04:40 +00:00
Tony Wickham 8dd5168b05 Add outline to shortcuts when focused.
Bug: 30563273
Change-Id: Ia54c112dcf91c225588b7388001eb93ee5c03171
2016-09-07 18:20:21 -07:00
Hyunyoung Song da1c17c492 Change all apps caret target bounding box
b/30400751

1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.

2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.

Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
(cherry picked from commit 016eaeea99)
2016-09-07 21:46:21 +00:00
Hyunyoung Song 016eaeea99 Change all apps caret target bounding box
b/30400751

1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.

2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.

Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
2016-09-07 14:45:09 -07:00
Tony Wickham 84af784548 Make padding consistent between shortcuts and the app icon.
am: 988e2b7a4d

Change-Id: Ib1a194b7b383b991bb0fd4da7c28a52821fbae8c
2016-08-08 21:17:51 +00:00
Tony Wickham ea5bcba847 Merge "Make padding consistent between shortcuts and the app icon." into ub-launcher3-calgary 2016-08-08 21:03:29 +00:00
Tony Wickham 988e2b7a4d Make padding consistent between shortcuts and the app icon.
This change makes the padding consistent regardless of where the app
is (e.g. folder vs workspace vs all apps) by ignoring the app's
padding and adding our own to the shortcuts container.

Also note that this padding is relative to the icon, excluding the
text beneath it. So we also hide the text when the container opens
downwards, and re-show it when the container closes.

Bug: 30604007
Change-Id: I6e51c4983a8b5d495833f86e483ebaa229ed2099
2016-08-05 11:17:42 -07:00
Hyunyoung Song 4ebc3d070f Change NavBar to transparent black
b/30615471

Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
2016-08-05 10:59:17 -07:00
Sunny Goyal a2454ad2d8 Launcher shortcuts animations update.
> The shortcut container closes with an animation
> When opening/closing the animation only the icon scales
and not the title and drag handle
> When dragging the icon, it starts from the original icon position and
moves under the user finger. The container grows to follow the drag view.

Bug: 28980830
Change-Id: Ic0353c30b682d1f018cbf4d62e8a6e8e7d7d4664
2016-07-27 17:37:23 -07:00
Sunny Goyal ce3fffb5fb Updating the search hint to contain the icon as a span object.
This makes the icon part of the hint text, and removes any need for
custom focus event handling.
Also the icon will now appear at the start of the text  based on the
direction of the text and not the direction of the layout

Change-Id: I06c5cf99492d75b1005c69ec7c521cde0fdab010
2016-07-22 13:17:30 -07:00
Tony Wickham f3c911cb10 Merge "Add drag handle to shortcuts." into ub-launcher3-calgary 2016-07-21 00:38:35 +00:00
Hyunyoung Song 852974375d Merge "Centered all apps search text" into ub-launcher3-calgary 2016-07-21 00:35:05 +00:00
Tony Wickham 377ed3f63e Add drag handle to shortcuts.
Also use short text if long text is ellipsized.

Bug: 30212144
Bug: 28980830
Change-Id: I213766bca0561d284d1da883ca37b0a42d886129
2016-07-20 17:28:34 -07:00
Winson Chung c80a024fb0 Merge "Initial changes to tweak layout." into ub-launcher3-calgary 2016-07-20 18:51:23 +00:00
Winson 1f06427266 Initial changes to tweak layout.
- 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
2016-07-20 10:17:08 -07:00
Sunny Goyal 4dcb831382 Merge "Fixing accessibility description for apps search box" into ub-launcher3-calgary 2016-07-20 01:49:15 +00:00
Peter Schiller 5b3ace8e56 Merge "Centered typing in search field" into ub-launcher3-calgary 2016-07-20 00:31:23 +00:00
Peter Schiller 637e40ad6f Centered typing in search field
Change-Id: Iae46722195d0d06ff88da52df4fa48ca7b157512
2016-07-19 17:30:44 -07:00
Tony Wickham 8f58e61d02 Update shortcut animations.
- Open animation: shortcuts reveal using modified circular reveal
  (so that it reveals in the pill shape instead of a circle);
  slight translation away from the original icon; scale icon and text.
- Hover animation: scale the shortcut pill and translate others away.

Bug: 28980830
Bug: 30127368
Change-Id: I8ed05c7a082f2c2a3f6c663da7259f6cd33e394f
2016-07-19 13:58:51 -07:00
Peter Schiller a92447a7fd Centered all apps search text
Change-Id: I21aaec56cd2202cea284880a28d9513435877368
2016-07-19 12:21:10 -07:00
Sunny Goyal 19187cb9f5 Fixing accessibility description for apps search box
Change-Id: I9c6c85eeec5e54dd29867c58ead7ce43acdc7cb1
2016-07-15 08:11:01 -07:00
Peter Schiller c9dec56c27 Merge "Preventing unnecessary layouts on search focus change" into ub-launcher3-calgary 2016-07-14 23:40:40 +00:00
Sunny Goyal 5024503702 Preventing unnecessary layouts on search focus change
Instead of expanding the edittext, using a separate textview
which is shown/hidden as the hint text

Change-Id: Ib4cedeaed9291f972be2ee407c06f4944c983e27
2016-07-14 16:39:48 -07:00
Sunny Goyal 01440c6e83 Adding a view to indicate space blocked by QSB when QSB is hidden
Change-Id: Ifc6b1f2a7312e7919582887ea67bfe900668b70f
2016-07-14 15:12:37 -07:00
Hyunyoung Song dc2fd8b2da Merge "Remove hotseat flicker and all apps GPU overdraw" into ub-launcher3-calgary 2016-07-14 00:49:48 +00:00
Hyunyoung Song ad140515b8 Remove hotseat flicker and all apps GPU overdraw
> Short story: elevation + transparency caused both flicker and overdraw

b/29641308
b/29648104

Change-Id: I621ccd888fa4c7e9292336dac1371246115cd3bb
2016-07-13 17:46:31 -07:00
Sunny Goyal 6178f13e2d Moving the QSB out of the cell layout to the Drag layer
This allows better edge matching for the QSB. The QSB position
is kept synchronized with the page scroll and all-apps transition.
But its not visible in spring loaded and overview mode

Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
2016-07-13 12:37:08 -07:00
Winson b655b88500 Cleaning up scrollbar logic to properly calculate stable extents.
- Removing old logic which assumed that views were the same size,
  especially now we can have variable dividers, etc.
- Simplifying old scroll position logic.
- Removing unnecessary prediction icon layout (same as normal icon)

Bug: 30023608
Change-Id: I39e1126fa586a76a9bdd3ff38cd6e360ac3021e6
2016-07-12 12:16:26 -07:00
Peter Schiller c2a20ff0a8 Consolidate all the dividers to provide same look and feel
Bug: 30017936
Change-Id: I072cb116dba1df555a63f3f67b730f7f9c3a235a
2016-07-08 15:02:03 -07:00
Hyunyoung Song e28bd7ca86 Set the all apps nav bar to black.
b/29998559

Change-Id: Iba66b390f78fdf25b7eaf912012aabaf7df56476
2016-07-06 22:54:33 +00:00
Andrew Sapperstein b900f1cbaf Merge "Delete all* references to launcher clings." into ub-launcher3-calgary 2016-07-01 18:03:09 +00:00
Andrew Sapperstein 932eb8313c Delete all* references to launcher clings.
Launcher clings are dead. Delete all the code and resources associated with
them.

* Did not delete the actual code the marks the cling as dismissed since it's
used in db upgrade and backup/restore paths. Figured we probably want to keep
that.

Change-Id: I28841b4a430187b62b239afeb64bee81a798e259
Fixes: 29461092
2016-07-01 10:23:20 -07:00
Andrew Sapperstein 3da982fbab Merge "Use colorSecondary for darker bg color." into ub-launcher3-calgary 2016-07-01 03:11:20 +00:00
Peter Schiller 310a988993 Updating all apps to match spec
Change-Id: Ie351fdea2e3b05ca911e6533f0c5d00c17e0847c
2016-06-30 18:09:51 -07:00
Andrew Sapperstein 5f7750d75c Use colorSecondary for darker bg color.
Used for widget headers and a few other places.

In order to support pre-API 25, an app-local version of colorSecondary
is created and used throughout the app. A new WidgetContainerTheme
sets colorSecondary to a canned value. On API 25+, colorSecondary
is set to the platform value.

Change-Id: Ie0dd66333052b7346eea5d82d1c88417c6a2cd00
Fixes: 28625102
2016-06-30 14:17:19 -07:00
Tony Wickham 1bce7fd342 Long-press on an app to reveal its shortcuts.
- 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
2016-06-29 17:48:46 -07:00
Andrew Sapperstein abef55a1c1 Update Launcher to use theme colors.
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
2016-06-20 11:46:44 -07:00
Sunny Goyal fb94f485ee Merge "Replacing overview panel icons with vector drawables" into ub-launcher3-calgary 2016-06-13 22:24:16 +00:00
Sunny Goyal b7c2e99ffb Merge "Updating the app search buton text" into ub-launcher3-calgary 2016-06-08 22:35:32 +00:00
Sunny Goyal 3333b0ced8 Unifying focus indicator handling for workspace and all-apps
Adding an abstract FocusIndicatorHelper based on FocusIndicatorView
which draws the background instead of using a dummy view.

Change-Id: Id560195323d2ddad8fcd77ba675cf3f4fd4a94ab
2016-06-08 15:00:09 -07:00
Sunny Goyal 8653f1d748 Updating the app search buton text
Bug: 28774501
Change-Id: I268a2d98f70d160c91ebd8fc796f3626ae67c159
2016-06-07 10:31:49 -07:00
Sunny Goyal 47328fd53f Removing the SearchDropTarget bar as it no longer contains the QSB
> Renaming it to simply DropTargetBar
> Moving AppInfo to the top bar as well
> The workspace pages will extend to the top edge (minus some padding).
Since the QSB is no longer displayed on top of every page, there is
no reason to reserve the space.
> In spring-loaded mode, the workspace cell layout will scale enough
to make room for the drop target bar at the top

Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
2016-06-06 16:15:46 -07:00
Sunny Goyal 02d3d43d97 Fixing memory leak in QSB widget
> Instead of recreating the whole fragment, only recreating the views
when reinflating
> Binding the fragment in xml instead of in code

This prevents duplicate fragment binding

Bug: 29120662
Change-Id: I25b942f64d68f25e1358f15d8a919daeebdcff9c
2016-06-03 13:38:52 -07:00
Sunny Goyal e7d7304fcb Replacing overview panel icons with vector drawables
Change-Id: I3ca6662a75ba8b07e817a7a5681ede79d305c41a
2016-06-03 11:21:47 -07:00
Sunny Goyal da4fe1a624 Moving the QSB to the workspace grid.
The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).

Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
2016-05-27 18:23:29 -07:00
Sunny Goyal 5c93eac3ae Merge "Adding a loading view for widgets list" into ub-launcher3-calgary 2016-05-26 23:40:06 +00:00
Sunny Goyal 9600d20110 Adding a loading view for widgets list
Bug: 28427096
Change-Id: Icdc5ceed0caa1fafc97452142e4b71aa3026ddf9
2016-05-19 09:17:09 -07:00
Sunny Goyal 6a4e02642a Removing some usused resources
Change-Id: Ib11db872270931f956ba7093e472c866a1b0e794
2016-05-18 19:57:00 -07:00
Sunny Goyal c64cfdd8fa Updating the folder page indicator to be more like the
framework page indicator (used in quick settings)

The active page is indicated with the accent color. During scroll
the active indicator expands to 2 dots corresponding to the visible pages.

Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4
2016-05-18 17:50:34 -07:00
Tony Wickham f549dab31d Add PageIndicator interface and custom PageIndicatorLine view.
- The current PageIndicator has been renamed to PageIndicatorDots
  and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
  draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
2016-05-17 18:53:57 -07:00
Adam Cohen bd238c9e1b Yet another RecyclerView child that needs match_parent
issue 27705077

Change-Id: I16bdefe37351c26897a57d314a58718cb837543d
2016-03-29 15:07:44 -07:00
Adam Cohen 1ad3ef3e81 Fix alignment issue with suggested apps in all apps
-> New RecyclerView handles wrap_content differently
-> Add mock set of suggested apps to the LauncherExtension

issue: 27581978
Change-Id: Id080e212e0425515fa66e821d116b95284bb3526
2016-03-28 15:51:25 -07:00
Sunny Goyal f37a21412a Defining separate layouts for horizontal and vertical drop target bars
instead of chaning the layouts in DeviceProfile

Bug: 27721989
Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204
2016-03-24 17:29:23 -07:00