Commit Graph

312 Commits

Author SHA1 Message Date
Sunny Goyal
360bc25ab6 Using RGB_565 for low-res icons
> Using a non-transparent image with flat background for low-res icons
> Changing the scale factor from 8 to 5
> The overall size change is 1/50 instead of 1/64

Bug: 22204941
Change-Id: I6cda4b4b3450c23a7bb8218ebd2de2b09af9c414
2015-07-01 12:00:07 -07:00
Winson Chung
243fdd7cdf Working around overscroll issues in AllApps.
- For the time being, we are going to do custom drawing to ensure that we get the touch
  events in the right order, while still allowing the recycler view to draw the overscroll
  effect on top of the prediction bar.

Bug: 21335369
Change-Id: I6bf64e5c1e9aa634a953223a5decf74942e4fb57
2015-06-23 21:56:07 +00:00
Winson Chung
b1777447d9 Refactoring fast scroller.
- 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
2015-06-23 14:24:15 -07:00
Hyunyoung Song
c44de1adcf Merge "Revert resource name to what platform ui automator test defines. b/21923650" into ub-launcher3-burnaby 2015-06-18 22:07:09 +00:00
Hyunyoung Song
60331a9be7 Revert resource name to what platform ui automator test defines.
b/21923650

Change-Id: I26a9405ac0567f856a43d83886df4ece938c11a7
2015-06-18 15:05:56 -07:00
Winson Chung
01d4053436 Renaming id to prevent collision.
Bug: 21878123
Change-Id: If4313d217967310ede7ed3fe11bdbe49311e1a4f
2015-06-17 00:45:04 +00:00
Winson Chung
ef7f874a88 Refactoring all apps search to support external search bar.
- Adding support for an external search bar that can be used
  to search a container view.  This adds a new interface
  AllAppsSearchController which manages the external search
  bar.  Each controller will have its own search implementation
  which means that we no longer need a common AppSearchManager
  interface.
- Removing elevation controller as we no longer have a builtin
  search bar in all apps
- Refactoring container view insets so that they behave
  the same in all containers.
- Refactoring apps view to ensure that we only update the number
  of columns with the available width
- Cleaning up LauncherCallbacks interface

Bug: 20127840
Bug: 21494973

Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
2015-06-15 14:22:47 -07:00
Winson Chung
6103501fa6 Merge "Ensuring that we use the screen width more optimally in AllApps." into ub-launcher3-burnaby 2015-06-05 18:09:35 +00:00
Winson Chung
2c6e5ccbcd Ensuring that we use the screen width more optimally in AllApps.
- 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
2015-06-05 09:49:12 -07:00
Sunny Goyal
40b626b930 Updating assets
Bug: 21304080
Change-Id: I26cf435779b477f0961d8e0d56dd6b86b418a3be
2015-06-05 08:47:40 -07:00
Hyunyoung Song
7b3bdcd6bb Merge "Consistent scrolling experience for All apps and widget tray" into ub-launcher3-burnaby 2015-06-04 18:39:44 +00:00
Hyunyoung Song
ec84728b27 Consistent scrolling experience for All apps and widget tray
b/21375339

Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
2015-06-04 11:37:46 -07:00
Sunny Goyal
a07c2f5c80 Folder UI fixes
> Fixing top padding (b/21304523)
> Alinging the label and page indicators to the icons
> Fixing folder label alingment in RTL (b/21445821)
> Updating footer animation (b/21336853)

Bug: 21304523, 21445821, 21336853
Change-Id: I2cf3a48c76653b19437b31252d6ee559ce798094
2015-06-01 16:15:54 -07:00
Sunny Goyal
af80285acc Decrease elevation for the reveal view.
> During the end of allApps animation, the shadow suddenly changes from 15dp to 0

Change-Id: I93bcf1220396b2bda3efea7febc2195ef556938b
2015-05-22 15:26:26 -07:00
Winson Chung
5f4e0fdd2e Moving all apps code into sub package.
- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
2015-05-22 12:21:40 -07:00
Hyunyoung Song
a9d012c6e6 Merge "Introduce scrollbar in widget tray" into ub-launcher3-burnaby 2015-05-21 23:00:18 +00:00
Hyunyoung Song
dd721f8633 Introduce scrollbar in widget tray
b/21270754

Change-Id: I82dd87193f0ed5822f8cd75ef0c785057f949015
2015-05-21 15:31:42 -07:00
Winson Chung
c393b0765d Fixing issue where the prediction bar apps are not focused.
- Also fixes issue where all apps is not accessible by keyboard
  when there are no other apps in the hotseat.

Bug: 21334471
2015-05-21 00:37:50 +00:00
Sunny Goyal
e0cab303b8 Setting drawable to droptarget in the code to avoid multiple drawable inflation
Change-Id: Ib713b3051e2707d46a4ee0090aed2db1d2e641b9
2015-05-20 16:41:08 -07:00
Sunny Goyal
99d950fb4d Removing unnecessary linear layout
Change-Id: I7fe423b9526805a2e84887e0437ebdc96203c263
2015-05-20 14:43:18 -07:00
Hyunyoung Song
c88ae71f66 Merge "UX widget cell color issue" into ub-launcher3-burnaby 2015-05-20 21:17:18 +00:00
Hyunyoung Song
611bcf172a UX widget cell color issue
- widget cell color is slightly brigher than the background of the widget row.
- They should be the same.

Change-Id: I20bda325d5d2fe7e194a453978dc74fd56a4e154
2015-05-20 14:14:04 -07:00
Sunny Goyal
bc0998670b Merge "Adding drop shadow effect in allapps" into ub-launcher3-burnaby 2015-05-19 21:07:40 +00:00
Sunny Goyal
6cfad01b1c Merge "Widget cell improvement" into ub-launcher3-burnaby 2015-05-19 19:21:22 +00:00
Sunny Goyal
096e4d5355 Updating the widget error view
Change-Id: I3ed6336bd9f5a795204a87feedc83663355abcf2
2015-05-19 12:10:05 -07:00
Sunny Goyal
f52abd7758 Widget cell improvement
> Using a custom view for preview, instead of extensing image view
> Preventing relayout when applying preview
> Removing unnecessary method calls

Bug: 21133230
Change-Id: Iab12fa1e5c871ee43a9fb0e6b6af897fecfb345f
2015-05-19 11:51:23 -07:00
Hyunyoung Song
436eeb6b97 Merge "Initially set the widget container view to GONE visibility" into ub-launcher3-burnaby 2015-05-16 00:16:27 +00:00
Hyunyoung Song
4ea4abdc59 Initially set the widget container view to GONE visibility
- Bitmap loading should not happen when Launcher3 is being loaded.

b/21207643

Change-Id: I1b6a5f970d157d139e0e5021182048f752b67415
2015-05-15 17:04:18 -07:00
Sunny Goyal
4b6eb26950 Adding drop shadow effect in allapps
Change-Id: Ic7a9b6e23d925d27a8dcbd418d2609e43917ac45
2015-05-15 15:47:10 -07:00
Sunny Goyal
a8a4546805 Merge "Adding padding to the folder content" into ub-launcher3-burnaby 2015-05-15 02:22:00 +00:00
Hyunyoung Song
b2751ba524 Changing the text sizes in the widget tray based on feedback from UX
Change-Id: Ide984049a326a6629269e90be3468a53a9dc60e3
2015-05-14 18:02:15 -07:00
Sunny Goyal
12fb2cc8ec Extending the shadow effect for search bar to lower devices
> Applying the background to the whole container instead of recycleview

Change-Id: Ifc90d05e0e96c41ba9aaf96b906211b101c2e197
2015-05-14 14:44:11 -07:00
Sunny Goyal
7066003b20 Various lint error fixes.
> 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
2015-05-14 12:28:07 -07:00
Sunny Goyal
5a92b2356f Reodering some drawables
> quantum_panel_shape is xml rectangle with no margin
  > quantum_panel_bitmap is 9-patch drawable with inbuild shadow and margin
  > quantum_panel uses xml-shape for lollipop and 9-patch image for lower
    devices. It includes margin. For shadow, use elevation on lollipop
  > All drawables have _dark variant
  > Using #f5f5f5 for panel background, instead of #ffffff

Change-Id: Ia7c6cea6d514ee3774fcf5fef6139650bdd53208
2015-05-14 11:14:09 -07:00
Sunny Goyal
b94f6616f7 Removing some more unused resources
Change-Id: Ia09045d2aa88eb1ec17ac4f201aeaf77c6870678
2015-05-14 09:52:06 -07:00
Sunny Goyal
22fc63ee29 Adding padding to the folder content
Change-Id: I88e56ff1aa26282e0167e2599f1b34ee374b705f
2015-05-13 16:01:26 -07:00
Winson Chung
927b36ae0b Merge "Pulling out predictions into another row view." into ub-launcher3-burnaby 2015-05-13 16:30:07 +00:00
Winson Chung
208ed75cfd Pulling out predictions into another row view.
Change-Id: Iba0d74457a1314cf0c00a88f9b07df049334e542
2015-05-13 09:10:31 -07:00
Sunny Goyal
bfcb652c77 Merge "Animating the folder title & page indicator when a multi-page folder is opened for the first time" into ub-launcher3-burnaby 2015-05-13 03:25:37 +00:00
Hyunyoung Song
5cd1d92f6c Fixing several layout issues.
- N7/N9 indented area should not block scroll view
- separator at the end of the widget cell should not show up on the last item.

Not covered in this CL:
- Guarantee that last item is showing only 20~40%. Right now, the
hand picked constant works for N5,6,7,9

b/20338324
b/20763871

Change-Id: I274ab95c6c3e2fc8be8ceafb2e8172c0174a41a5
2015-05-12 15:40:09 -07:00
Sunny Goyal
07b75b85c2 Merge "Using BubbleTextView for widget section headers" into ub-launcher3-burnaby 2015-05-12 22:12:00 +00:00
Sunny Goyal
0e08f166fa Using BubbleTextView for widget section headers
> Loading highres icons on the worker thread.

Change-Id: I5b68a86820aa4c132c156339e497354cf57f0fca
2015-05-12 11:40:24 -07:00
Winson Chung
13eb527b5a Exploring dense all apps layout.
- Disabling section headers in all apps on tablet layouts
- Fixing issue with predictions not showing on rotation
- Fixing issue with over-aggressive dismissing of keyboard & filtered app state
- Fixing issue where the container bounds were running straight up to the nav bar

Change-Id: I5a5a56afa75b50be96af4894bf785ffbb1b15fb3
2015-05-11 17:53:47 -07:00
Sunny Goyal
57ebefb589 Merge "Various icon size changes" into ub-launcher3-burnaby 2015-05-11 23:55:12 +00:00
Sunny Goyal
dfaccf64bd Various icon size changes
1) Setting different icon and text size for workspace and all apps
2) Setting padding during BubbleTextView inflation

Change-Id: I59da6986b0d98e8e2aa6065743bb799a6bf06a37
2015-05-11 16:48:05 -07:00
Hyunyoung Song
f385e3c058 Merge "Ensure that clipping widget size is 20~40% of its width on every devices" into ub-launcher3-burnaby 2015-05-11 22:52:36 +00:00
Winson Chung
814f1eb805 Merge "Initial changes to support predicted apps." into ub-launcher3-burnaby 2015-05-11 22:04:36 +00:00
Winson Chung
4ac3006873 Initial changes to support predicted apps.
Change-Id: I80117d51074fe3dbdbb8d81cae886b1dffdfb86a
2015-05-11 21:59:39 +00:00
Hyunyoung Song
4b69f2ca91 Ensure that clipping widget size is 20~40% of its width on every devices
b/20338324
b/20763871

Change-Id: I69114cb6dfec95c473313a440a6db76a052e5601
2015-05-11 14:55:07 -07:00
Sunny Goyal
62227274cb Merge "Using xml-drawable and elevation as folder background" into ub-launcher3-burnaby 2015-05-11 18:54:45 +00:00