Commit Graph

85 Commits

Author SHA1 Message Date
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
819e1936bb Defining the list of predefined device profiles in xml.
This allows the profiles to be easily customized by derivatives.

Change-Id: Iaec2b7a0eda34581c8e48b7dc44817013632dabe
2016-07-07 16:57:49 -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
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
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
Sunny Goyal
4876ea26e9 Chaning the \'title\' attribute format to string to be consistent with support libraries
am: eba87b1770

* commit 'eba87b1770937f44998aff5fc4b34a12b30c6440':
  Chaning the 'title' attribute format to string to be consistent with support libraries
2016-02-26 22:48:54 +00:00
Sunny Goyal
eba87b1770 Chaning the 'title' attribute format to string to be consistent
with support libraries

Change-Id: I58f687f9ab5d6c0e42bebd4f0f75e1efc696b9fe
2016-02-26 09:46:11 -08:00
Sunny Goyal
86feafc1e5 Merge "Revert "Disabling som attributes so that dependencies can use compat libraries"" into ub-launcher3-burnaby-polish
am: 81131edc8e

* commit '81131edc8ed9c1d866d98bef3f08bbd9eb4d47fc':
  Revert "Disabling som attributes so that dependencies can use compat libraries"
2016-02-25 00:13:15 +00:00
Sunny Goyal
59871ef875 Revert "Disabling som attributes so that dependencies can use compat libraries"
This reverts commit e1bd986d77.

Change-Id: I27490d0cb241b2e58ce45998f7f9e9bc8d84993c
2016-02-24 00:28:02 +00:00
Sunny Goyal
1a187d4e37 Disabling som attributes so that dependencies can use compat libraries
am: e1bd986d77

* commit 'e1bd986d77afc9426e320b7cce53993086f9d8ba':
  Disabling som attributes so that dependencies can use compat libraries
2016-02-23 19:02:41 +00:00
Sunny Goyal
e1bd986d77 Disabling som attributes so that dependencies can use compat libraries
Bug: 27101533
Change-Id: I18de77cffbbb234f25fb85dfe0334ed7fe113a74
2016-02-23 10:43:02 -08:00
Sunny Goyal
7c50b31f57 resolve merge conflicts of 3826bab27e to ub-launcher3-calgary.
Change-Id: I14ff2d67de4ba97628bdf651602724f9f4989173
2016-02-10 12:27:51 -08:00
Sunny Goyal
0ac7ede56a Merging search bar with all apps
Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
2016-02-08 14:55:22 -08:00
Sunny Goyal
77ccb8d03c Removing some unused resources
Change-Id: I6aa8a2d7eb4599ed2351c54fe0885839b5ba4521
2015-10-05 14:14:19 -07:00
Sunny Goyal
cf25b52763 Removing some unused PagedView attributes
Change-Id: I1c7312b46ec95286d8e49d3dee60b1bf4d98dc20
2015-07-09 10:06:31 -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
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
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
Adam Cohen
2670980ab7 Remove dublicate BubbleTextView styleable
Change-Id: Ib1db985515194dfeebe2dfa934b29023ae0a3075
2015-03-21 09:18:56 -07:00
Winson Chung
93f98eaf18 Adding app grid layout with fastscroller.
- Adding filtering and using alphabetic index for app grouping.

Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
2015-03-12 18:57:02 -07:00
Winson Chung
b745afbdd7 Initial changes to break out AllApps into its own view.
- Moves launcher state-transition code into its own class
- Moves all-apps related code into a separate view/set of classes
- Implements a basic list view for all apps

Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
2015-03-10 18:14:22 -07:00
Sunny Goyal
594d76dc66 Using the default search widget in Launcher3
> Removing all logic related to search and voice overlays
from Launcher3
> Using the widget provided by global search provider on the
homescreen
> Removing VoiceButtonProxy, as it is not being used anymore

Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
2014-11-11 10:17:56 -08:00
Adam Cohen
be25822f76 Add InsettableFrameLayout layout params to easily ignore insets
Change-Id: I117fc34627e24ea5f909c3c87e9c2dbca46babb6
2014-10-24 16:46:19 -07:00
Adam Cohen
cee8c66f9a Adding ability to list folder items in separate file
-> remove all apps default layouts

Bug 17569015

Change-Id: I39b899b61d5b1cff2d7801d281dacfc804c403c5
2014-10-17 01:33:55 +00:00
Sunny Goyal
fbfa2cc609 Removing unused cling resources.
Change-Id: I97ff14f436f75a6345f719ef19146b02087e2221
2014-08-27 18:10:23 -07:00
Sunny Goyal
7661614383 Updating Clings UI
issue: 16127412

Change-Id: Ie5885cabbef086e3b08811da72af88d01c4405e7
2014-08-27 10:57:03 -07:00
Sunny Goyal
424418bb50 Updating clings, removing ununsed clings
issue: 16127412

Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
2014-08-25 11:38:02 -07:00
Sunny Goyal
508da15509 Updating the icon click feedback
> Using BubbleTextView everywhere, removed PagedIconView
> There is a brightness feedback on touch and shadow
feedback on click, until app launches

issue: 16878374
Change-Id: I3dc1149a123c8a75feca6210948398bf2187f1f2
2014-08-19 18:03:06 -07:00
Sunny Goyal
95abbb330c Updating the virtual preloader UX.
> No click feedback when in preloader mode
> No preloader UI when drawn in drag layer
> The preloader consists of a background 9 patch image and a circular progress
is drawn in the content region of the background.
> The preloader is drawn in a slightly larget area than the actual bounds to
make the circular progress more prominent compared to the icon.

issue: 15835307
Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
2014-08-11 12:32:04 -07:00
Adam Cohen
4e243a2dad Updating the widget tray
-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL
-> (removed Context#getDrawable() calls, L-only)

Change-Id: Ia65a6eb704b35f74e7305be9334c27971b22235a
2014-08-11 15:40:37 +00:00
Adam Cohen
96bb79819e Enabling quantum look and feel everywhere
-> _l assets become default, new folder icon look is default
-> Starting to unify folder look / feel with all apps
-> New page indicators

Change-Id: I50b2c647fbcbe6ed27705527d8e16bd89e123d0b
2014-07-07 15:29:53 -07:00
Adam Cohen
3b185e2513 Fixing up PagedView to work in landscape mode
-> separated notion of page spacing and paged view padding
-> always position the current page within the rect
   created by pagedview's viewport + padding
-> space pages by a constant amount

Change-Id: I6bb35f72f04543f83b51ef981f8c9ded051623ac
2013-10-31 14:34:19 -07:00
Daniel Sandler
57dac26fe0 Add support for <include> in workspace XML.
Note that this doesn't honor folder nesting (that is, you
can't include an XML file full of shortcuts inside a
<folder> node and expect them all to appear in that folder).
It's really just a way to concatenate/overlay multiple XML
files, making it easier to make a few tweaks/additions for
certain screen sizes or locales.

Bug: 10932771
Change-Id: I1fc29477d0717a8a7bc116f16729a955e6c625d5
2013-10-03 13:28:36 -04:00
Winson Chung
c9c4424ead Merge "Initial Changes for Dynamic Grid" into jb-ub-gel-agar 2013-08-20 17:59:06 +00:00
Winson Chung
5f8afe6280 Initial Changes for Dynamic Grid
Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
2013-08-20 10:56:05 -07:00
Cristina Stancu
d791998dd8 Modify qsb bar elements to handle hotword state.
They currently handle a pressed mode (showing a blue overlay), we'd like
them to also handle a hotword state that would modify their appearance
when hotword is available and active.

Meant to work with: ag/344334

Change-Id: I07e261ce64307fdad8a4c16fc02eb009ca826ece
2013-08-16 12:06:59 +01:00
Winson Chung
5bc865e787 Adding workaround for page indicators to support many pages.
- Tweaking assets until we get something proper

Change-Id: Ie07946acb529ff747d76896ff38837f8db6a7258
2013-07-18 15:18:25 -07:00
Winson Chung
d2be381d36 Removing old scroll indicator and adding page indicator dots.
Change-Id: I44c5b4b532e8464010d45dd0a3dfeccb2d475216
2013-07-17 11:15:22 -07:00
Bjorn Bringert
f3e92c9448 Delete unused class HandleView
Change-Id: I775d34a2c0a755994a6e1bfe6127fed4ddcda0b7
2013-06-06 12:59:00 +01:00
Winson Chung
2816ca58d3 Fixing issue with resource ids. (Bug 6532243)
Change-Id: Ie4a245a224038a750e60b0203003638fd561713d
2012-05-23 15:39:39 -07:00
Michael Jurka
dac8591072 Updating how widget previews look
Also fixing issue where some widget previews would
be way too large when picked up

Bug: 6472013

Change-Id: Iebfc33b1070da591a9d1d32d7c8e65a3fb057a7e
2012-05-22 21:03:55 -07:00
Winson Chung
b3302aee12 Sending broadcast for pre-configuring default workspace widgets.
Change-Id: I3c5598b9a2cec6cdcc96015645018b0a6e44a2fc
2012-05-01 10:59:59 -07:00
Winson Chung
604f6df088 Adding workaround to make voice button target area larger (Bug 5653332)
Change-Id: I8c4e940f9ae01ac4f6808ecfb10035249c12a499
2012-01-12 14:39:18 -08:00
Winson Chung
4decf123e4 Merge "Fixing issue where AllApps labels were getting clipped (Bug: 5490118)" into ics-mr1 2011-11-08 17:35:51 -08:00
Winson Chung
6032e7ed8e Fixing issue where AllApps labels were getting clipped (Bug: 5490118)
- Tweaking the AllApps grid spacing

Change-Id: I7eb79edfd170500c1fecd6841e6f022bd40ac250
2011-11-08 15:54:45 -08:00
Winson Chung
620542254c Altering touch feedback for qsb assets. (Bug: 5560273)
- Removing some dead code

Change-Id: If6f3ffcf28249ca08c23089acb5bcd501b455119
2011-11-03 16:31:47 -07:00
Winson Chung
7d7541e7b4 Updating Clings. (5057945, 5056643)
Change-Id: Ifb2d37e92495aeddf9d4b3277eb8d2a846f4aa99
2011-09-18 18:38:11 -07:00
Winson Chung
82f5553a13 Cling ALL the things! (Workspace and AllApps)
Change-Id: Iee6b38dbb4f0b2fb85f854d70fd86db1e7b1d8f7
2011-08-22 21:26:06 -07:00
Winson Chung
f5f8cefb21 Launcher cleanup and fixes.
- Removing unused hotseat assets
- Adding xhdpi assets from designer repo
- Decoupling dock divider and scroll bar to fix landscape divider issue
- Fixing issue where dock portals were being clipped

Change-Id: If3894a9a265e0272111e852857f9cfbf994ec050
2011-07-25 12:06:43 -07:00