Commit Graph

6493 Commits

Author SHA1 Message Date
Jon Miranda f944860db6 Add context to widget dimensions for accessibility.
am: 6c61323998

Change-Id: I5cd9cce4d842a17bafc68b31a09dcf0a62949c1e
2016-09-19 23:19:13 +00:00
Jonathan Miranda 41be5cdea5 Merge "Add context to widget dimensions for accessibility." into ub-launcher3-calgary-polish 2016-09-19 23:04:11 +00: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
Jon Miranda 6c61323998 Add context to widget dimensions for accessibility.
Bug: 19085860
Change-Id: Ia28c2c14b93945d796226eea3de040e971fd42f0
2016-09-19 11:25:39 -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
Jon Miranda a802a62c47 Fixed NumberFormatException when trying to display vector drawable.
Found while debugging on Lollipop.

Change-Id: Idb098d3a8f7f1fa608fd8a32225cdefa41ba47a7
2016-09-15 15:07:44 -07:00
Sunny Goyal b2dbc56568 Merge "Updating the assets for the all-apps search background." into ub-launcher3-calgary-polish 2016-09-08 20:16:49 +00:00
Sunny Goyal 57b4006d52 Updating the assets for the all-apps search background.
Bug: 30309105
Change-Id: I4dd4a97ff49fd3c6dd386f100ca35dfb629044df
2016-09-08 12:57:11 -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
Sunny Goyal c855023982 Updating the workspace scrim
The scrim is only drawn on the top in both normal & transposed layout

Bug: 29189114
Change-Id: I99bbf4c4a73e172e000ef24af0662e1922592e0a
2016-08-25 16:16:11 -07:00
Sunny Goyal 2fb1356be6 Merge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish 2016-08-25 22:49:24 +00:00
Sunny Goyal 65ceb5aa55 Moving the scrim to draglayer
> This causes the scrim to animate with the content on first launch
> Also removing the logic to disable scrim based on state. That
logic was only executing onResume which could lead to an invalid state

Bug: 30972956
Bug: 30576826

Change-Id: Ia8386b303ce260f69e3b3b93041226f409301a01
2016-08-23 19:04:23 -07:00
Sunny Goyal 112ce42926 Adding a resource pointer to the app name so that derived projects can
easily modify app name

Change-Id: I3f301e1b2ba38d0a45d220bb628dcfdf3906246c
2016-08-22 16:45:58 -07:00
Sunny Goyal ad9a25d4be Fixing allApps UI not extending to statusbar & navbar on tablets
AllApps UI on tablets includes the extra gray bottom bar at the bottom
for nav-bar background protection, and should overlay the nav bar

Change-Id: Idb138b714c34de5510eb9aedfcefb22c9189eee4
2016-08-18 11:34:55 -07:00
Bill Yi 2911dcd6fa Import translations. DO NOT MERGE
Change-Id: If3c9e57ec6801605397ff16f2ec93c6aaeda665e
Auto-generated-cl: translation import
2016-08-15 18:00:59 -07:00
Bill Yi 2deaba905f Import translations. DO NOT MERGE
Change-Id: I96007581be40da18813dfcb8606bc6d8fed29e54
Auto-generated-cl: translation import
2016-08-15 17:59:41 -07:00
Tony Wickham 6bb6711f4e Ignore clicks on shortcuts' drag handles.
am: e04a07f6ac

Change-Id: I96360a63524edeff3e2aa9b21707c1c81a79012f
2016-08-15 23:15:27 +00:00
Tony Wickham e8882f7d27 Merge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary 2016-08-15 22:52:56 +00:00
Tony Wickham e04a07f6ac Ignore clicks on shortcuts' drag handles.
When touching down within the drag handle's bounds, we remove the
onClickListener temporarily (restored when touching down outside
of the drag handle's bounds). Long clicks still start the drag.

Also increased drag threshold from 12dp to 16dp.

Bug: 30816665

Change-Id: I0b33dc34bf95c0532376f2f7cf50865fa50093de
2016-08-15 14:02:08 -07:00
Bill Yi 421c48ee8b Import translations. DO NOT MERGE
Change-Id: I2558456492c591d91fb65e78f888da892ec1964b
Auto-generated-cl: translation import
2016-08-11 15:04:30 -07:00
Bill Yi 265cf73a43 Import translations. DO NOT MERGE
Change-Id: Iad4289a91834aa57c8458356a3f3b31be74c760b
Auto-generated-cl: translation import
2016-08-11 15:03:42 -07:00
Bill Yi 26dfbda050 Import translations. DO NOT MERGE
Change-Id: Iad51eb6eb92204d454c1e03d03281eaedcb85f7f
Auto-generated-cl: translation import
2016-08-10 08:17:35 -07:00
Bill Yi cb782bd43a Import translations. DO NOT MERGE
Change-Id: Id72084a093ca622391d5c3af74f90e66499dea28
Auto-generated-cl: translation import
2016-08-10 08:16:45 -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
Sunny Goyal dd6bb46232 Merge "Forcing drag layer to be non accessible. Setting a touch delegate makes a view to become accessible, if its set to auto. This was making drayLayer accessible causing Talkback to speak out every item on the draglayer when window focus changes" into ub-launcher3-calgary 2016-08-08 18:00:23 +00:00
Bill Yi bdc9f325b6 Import translations. DO NOT MERGE
Change-Id: Id2c49f09da28322e551dc6dc5b136cbf0c9bc943
Auto-generated-cl: translation import
2016-08-07 22:37:00 -07: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 4829a88ed4 Forcing drag layer to be non accessible.
Setting a touch delegate makes a view to become accessible, if its set to auto.
This was making drayLayer accessible causing Talkback to speak out every item
on the draglayer when window focus changes

Bug: 30670702
Change-Id: Ifcba4c02b124166f9ca69c4244b9d20d7a7acaa5
2016-08-04 17:57:29 -07:00
Tony Wickham 598e184352 Reduce distance to start deferred drag from shortcuts to 12dp.
Change-Id: Ida298760bb66b5894dab94ff4ccaa788c8604661
2016-08-04 15:38:26 -07:00
Bill Yi edd583d6cd Import translations. DO NOT MERGE
Change-Id: Id9dfc22db1bca7d0e0278bad6854582bf6dbb9b6
Auto-generated-cl: translation import
2016-08-03 14:22:25 -07:00
Tony Wickham 1f01b016ce Align shortcut text with view start.
Bug: 30401505
Change-Id: Iffaa0a01f2c2983a085d8c9d4be36fc063ae2004
2016-08-03 12:00:33 -07:00
Peter Schiller e6fe1b5947 Simpler caret
Bug: 30527159
Change-Id: I674de149e613c7adb567a13a288baa9877d36112
2016-08-02 17:54:18 -07:00
Sunny Goyal a659bfe3d2 Updating content description for the shortcuts menu and announcing
it when the container is opened

Bug: 30587453
Change-Id: I6f2d3ba05593f3e2a1a8f05c66a0f80e76932c38
2016-08-02 16:16:16 -07:00
Tony Wickham d92e36e6f9 Update shortcuts font to match spec.
Bug: 30594316
Change-Id: I9de1068a502e9f441f2609d114595b7513f20cad
2016-08-02 11:53:07 -07:00
Bill Yi b22c174a2e Import translations. DO NOT MERGE
Change-Id: I221a6a62f6329ddac3e71461bb381820ed239873
Auto-generated-cl: translation import
2016-08-01 18:26:24 -07:00
Bill Yi 6c5025a9f5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30413963
Change-Id: I356f01214564a37fd27810a4bbd51a433ef5514d
2016-07-28 18:52:23 -07:00
Sunny Goyal 70a7c9b700 Showing the shortcuts in the disabled state and removing ti from the menu
when its disabled

Bug: 30315906
Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
2016-07-28 12:22:51 -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
Hyunyoung Song 8fcdee05bb Merge "Change default animation duration for all apps open and close." into ub-launcher3-calgary 2016-07-27 18:55:29 +00:00
Hyunyoung Song e3876e8dd0 Change default animation duration for all apps open and close.
> Also set different interpolator for all apps opening clicking the caret

Change-Id: I7f9b764a8bf8bb7c38d94acbd964e912f22d6941
2016-07-27 11:54:02 -07:00
Sunny Goyal 3cdf466e2b Updating the label for shortcuts aciton
Bug: 30374655
Change-Id: I92d269aca8b9361356b1b2241b24fc9e17ad1074
2016-07-27 11:17:22 -07:00
Tony 780c926db5 Match updated redlines for shortcuts.
- Align shortcut icons with original icon.
- Drag handle is lighter and smaller.
- Shortcut pills are slightly wider to accommodate long text.

Bug: 28980830
Change-Id: I8e9709e3cbdb9df86a805a4b63a696975c61df5a
2016-07-26 17:54:02 -07:00
Tony eec1f9a839 Add arrow view to deep shortcuts container.
- We create a trangular path, which we use as the view's
  outline (for the shadow) and as its PathShape background.
- We scale up the arrow as the container opens.

Bug: 28980830
Change-Id: I71e566552f063dfdb69067bb7e3cee659988f934
2016-07-26 17:10:05 -07:00
Sunny Goyal 3ffa64df36 Added custom actions for showing the shortcuts menu and adding a quick action
on the home screen

Bug: 30374655
Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
2016-07-25 17:39:34 -07:00