Commit Graph

244 Commits

Author SHA1 Message Date
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
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 a30b51ceb2 Adding stateful caret drawable
Change-Id: Iba30da09f882297f789c405f932fef10617bba89
2016-07-14 17:22:49 -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
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
Hyunyoung Song 7d2fc8120e Add caret shaped all app pull up handle to page indicator.
b/28917826

> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp

Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
2016-06-15 12:51:30 -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 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 e7d7304fcb Replacing overview panel icons with vector drawables
Change-Id: I3ca6662a75ba8b07e817a7a5681ede79d305c41a
2016-06-03 11:21:47 -07:00
Sunny Goyal ded0fdba52 Removing logic for workspace migration from Launcher2
Change-Id: I8a121d74862f665c58406f8d5c7eb1263e7ccff3
2016-05-23 16:00:09 -07:00
Tony Wickham 1c1c088994 Fix spring-loaded highlight on JB.
It was setting the panel to black when highlighting a CellLayout,
instead of just adding a white border.

Bug: 27135377
Change-Id: I879b12613b0cbfdda2a980065c66ea3ceb960f33
2016-03-31 15:09:15 -07:00
Sunny Goyal 7efe651226 Fixing black search bar background in search bar
Bug: 27919354
Change-Id: I3f43d8f39640c2db4b192ea316aebf11189982e3
2016-03-30 09:19:45 -07:00
Tony Wickham 95cdb3a021 Remove scrim on highlighted spring-loaded panel.
Bug: 27135377
Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc
2016-03-16 11:09:09 -07:00
Tony Wickham 654f1b315f Merge "Change widget host view background when giving focus to child." into ub-launcher3-burnaby-polish
am: 4df1653331

* commit '4df165333131483e1d6b6c156d345a4aeef9806c':
  Change widget host view background when giving focus to child.
2016-02-10 23:36:42 +00:00
Tony Wickham 4df1653331 Merge "Change widget host view background when giving focus to child." into ub-launcher3-burnaby-polish 2016-02-10 23:35:11 +00:00
Tony Wickham fb78856466 Change widget host view background when giving focus to child.
Before, the FocusIndicatorView stayed on the widget host unless the
widget had its own focus change listener, which caused a couple of
problems, namely  (1) it was hard to know where the focus was from
a user's standpoint, and (2) the focus indicator could get stuck on
the screen if you entered a widget and then long-pressed workspace.
Now, the focus indicator goes away and instead the widget is framed
with a white border to indicate that the focus is inside it. The
frame goes away when pressing ESC or when touching the screen.

Bug: 26744224

Change-Id: I14025576fd7a9f901b4d969b878af0bebad79a70
2016-02-10 15:28:18 -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
Tony Wickham e0c3323656 Tweak spring-loaded workspace.
- No page indicators in spring-loaded mode
- Don’t move workspace up as high
- Scale workspace at 90% instead of 80% on phones
- Increase speed of workspace -> spring-loaded -> workspace
- Widgets were being scaled down twice when dragging from widget picker
- Don't scale up icons when dragging (scaling other stuff down is enough)
- Make scrim less dark and panels more transparent
- Thin white border around page instead of highlight when hovering

Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
2016-02-08 11:37:19 -08:00
Sunny Goyal 6cfe5fcd8a Updating overview buttons click feedback
> Using xml bitmap for changing alpha, instead of a new bitmap
  > using state list animator, which changes the alpha of the
    whole view, and not just the icon

Change-Id: I2dda9bfba390a24a83b162c3cf4bcb9a0865f4c2
2015-08-24 17:09:34 +00:00
Winson Chung bedf9232eb Adding market search.
Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
2015-08-06 12:22:38 -07:00
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 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
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 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 2805e639cd Animating workspace active background change
> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
2015-05-21 16:26:15 -07:00
Sunny Goyal 3a644ed1ce Using color filter when animating the drop target instead to TransitionDrawable
> No more flickering when crossfading between two bitmaps in small duration
> Allows us to control the color directly without depending on the assets

Change-Id: Ie7ed8bb94baf560e9b939cca624ed1bad457732c
2015-05-21 10:30:46 -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
Hyunyoung Song 1e62c1594a Unbreak the build. Remove extra xml version definition.
Change-Id: I42f1c21143bef6181828d1135deaaf153acbf984
2015-05-12 15:58:09 -07: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 3a2698b308 Updating drop target assets
Change-Id: I33f7dc30b10a617ae4784f067491ab01b27b7733
2015-04-28 21:38:56 -07:00
Winson Chung 0f78572066 Initial changes to support a fixed all-apps layout.
- Dynamically update padding and background depending on fixed bounds and searchbar
- Fixes issue with drag layer bg getting clobbered when rotating launcher
- Tapping outside the bounds of all apps should close all apps
- Fixing typo causing widgets to not show in sw720dp devices

Bug: 20127840

Change-Id: I29c3f905bdee940f938ffe054f58434887073092
2015-04-09 13:18:31 -07:00
Winson Chung f819dc2bc7 Making the scrollbar scrubbable.
- This change in behavior will remove the ability to scrub anywhere in the gutter to
  start fast-scrolling, but requires the user to touch near the scroll bar to start
  fast-scrolling.
- Also fixes issue with wonky scrollbar due to the fake section breaks

Change-Id: I34b08ac46ea93f7f4cad7ccde1048a388ee6a55d
2015-03-24 10:30:05 -07:00
Winson Chung aa2ab254ea Tweaking the apps list fast scroller.
- Making the view span the full width so that you can grab the scroller on the edge of the screen.
- Offsetting the fast-scoll popup so that you can see it as you scrub.

Change-Id: If1b1934bbeac0660d829cfc29c9e588df927c5e5
2015-03-16 15:20:39 -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 c5771f1987 Removing all traces of Market button and TabIndicator
Change-Id: I9dc10d990321697723560986834ebeef3e0f1c0d
2014-10-17 01:56:17 +00:00
Sunny Goyal 424418bb50 Updating clings, removing ununsed clings
issue: 16127412

Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
2014-08-25 11:38:02 -07:00
Sunny Goyal dcbcc86353 Updating the UI for focused state of an icon/folder.
issue: 16352129

Change-Id: If2e154dba06a0648f933f9aea38898642db9fd85
2014-08-18 13:51:51 -07:00
Sunny Goyal 0fc1be164e Updating the ui for widget restore flow
> Pending widget show a PreloadIconDrawable to indicate
installation progress
> Only the concerned widgets are reinflated on package
install and not the whole workspace.
> Adding support for storing default package icon in
IconCache

issue: 10779035
issue: 16737660

Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
2014-08-12 16:00:03 -07:00
Sunny Goyal 651077bdd6 Adding app widget restore support in Launcher3 for android L
When the app is restored, it displays placeholders for all pending widgets.
These placeholders can be moved and removed similar to a widget (size is fixed
to what defined in backup). Once the system notifies the launcher of the new
widget ids, the place holders are replaced with actual widgets.

issue: 10779035

Change-Id: I68cbe4da01e9ca2978cb4471a7c645d2aa592055
2014-07-21 10:34:21 -07: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 71b0473f24 Add new assets for LMP preview
issue 15544569 c), d), e)

Change-Id: Ib352ef1fa7c19c3695c82f3ea31936a4b41da5aa
2014-06-11 10:50:41 -07:00
Michael Jurka 96749c1321 Revert "Revert "Move wallpaper picker code to a separate directory""
This reverts commit 39de459a86.
2013-12-11 15:41:28 +01:00
Michael Jurka 39de459a86 Revert "Move wallpaper picker code to a separate directory"
This reverts commit 8e88cb8478.
2013-12-10 23:47:28 +01:00
Michael Jurka 8e88cb8478 Move wallpaper picker code to a separate directory
Change-Id: Id79d11ed08085c4fe356739498a8b77952e30392
2013-12-10 18:28:50 +01:00
Winson Chung f7e11e9080 Fixing RTL issues with Clings. (Bug 11008488)
Change-Id: I78f891eabab53d6ded18f7c843504219d71e2883
2013-10-10 17:18:53 -07:00
Adam Cohen ed0c999ac3 Adding pressed state to overview mode buttons (issue 10926631)
Change-Id: I9d670d4770e56921310d34dc08657a6e753ec5ee
2013-09-26 16:28:48 -07:00
Winson Chung af40f205d7 Initial changes to restore clings.
Change-Id: Ie23e6e9f39679e8d35955a4a7db804d03f8b4d3f
2013-09-20 17:22:05 -07:00
Michael Jurka 5664de2524 Update assets for pressed/focused/selected states
Also, add shadow below/above wallpaper strip

Bug: 10722070

Change-Id: I37c445bab90e103f414c95b62e101a73d060661f
2013-09-18 15:16:00 +02:00
Winson Chung 468a155600 Adding xxhdpi resource directories.
Change-Id: Iccbdcbfc98187fd3a862774c4b11105d5f5b6d24
2013-09-13 14:39:55 -07:00
Michael Jurka d6dc6043ad Adding ability to delete previously saved wallpapers
- Also preserving temporarily picked wallpapers on
rotation

Change-Id: I35361e2a5619cd986bd8b66268ce9e94b9a0027e
2013-09-12 20:49:17 +02:00
Michael Jurka c8f83f46b6 Oops, fix build breakage caused by missing files.
Also, remove preview images for wallpaper pickers.
2013-08-21 13:50:43 +02:00
Daniel Sandler 6241609bd6 Remove built-in wallpaper picker.
Note that we don't yet have a solution for the user's
initial wallpaper. Bother!

Bug: 9626042
Change-Id: I07ab09a3d10434e444dc27051034d387e692e469
2013-08-21 13:36:18 +02:00
Daniel Sandler 325dc23624 Launcher2 is now Launcher3.
Changes include
  - moving from com.android.launcher{,2} to
    com.android.launcher3
  - removing wallpapers
  - new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
2013-06-05 23:30:20 -04:00
Michael Jurka 6cfafb96c3 Fix a lot of easy lint issues
Change-Id: I80b43dae137cbbb912ec0fcc4e401de16a9b44a1
2012-02-24 12:53:08 -08:00
Winson Chung e96e5cb768 Fixing a few landscape issues.
- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226)
- Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226)
- Fixing regression where the market button had no press feedback

Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
2011-11-28 16:24:54 -08:00
Winson Chung 3f4e142380 Minor fixes to Launcher
- Tweaking the AllApps tab padding
- Fixing issue where the cling punch out might be in the wrong location
- Removing unused dragging code related to drop/scroll area overlap
- Tweaking padding so that picking up an icon on the top row does not automatically hover over delete (Bug 5636264)
- Fixing issue where multiple bgs in AllApps tab bar line makes it look blurry (Bug 5523822)

Change-Id: I707397c231188a9feee8c0856374e0483cf37296
2011-11-18 10:13:04 -08:00
Adam Cohen ebea84d1c9 Unifying overscroll btw phone and tablet
-> Using separate assets for removing and uninstalling

Change-Id: I183967c3ca482531ae28f71cd9053b673c6a8d03
2011-11-11 11:38:53 -08:00
Michael Jurka bdf78559f2 Fix stuttering animation when you press home
Bug # 5533287

also removing some dead code/assets

Change-Id: I05e0a67d5b9003c76e1589a9dc54b7d17b755acf
2011-10-31 14:56:07 -07:00
Winson Chung 90576b5f09 Fixing some small issues.
- Adding All Apps pressed state (5375824)
- Ensuring the drop targets are single line (5375563)
- Adding some checks in kb focus logic to appease some frantic monkeys (4508638)
- Removing some unused assets

Change-Id: I46702ee25c638849c716f0d8428f68c2b06c1c2e
2011-09-27 18:46:06 -07:00
Winson Chung 7d7541e7b4 Updating Clings. (5057945, 5056643)
Change-Id: Ifb2d37e92495aeddf9d4b3277eb8d2a846f4aa99
2011-09-18 18:38:11 -07:00
Winson Chung c3665faf45 DO NOT MERGE: Fixing regression where scroll position would be offset when rotated.
- Fixes the scrolling issue only in conjunction with framework measure fix
- Updating the wallpaper gallery item background

Change-Id: I156de59a3eadfdaa61018c0a74ad0614d76cde6d
2011-09-15 13:38:54 -07:00
Winson Chung d90466bc77 Fixing build.
Change-Id: Ib76ed00be3b81231b782f83a3dd13c6dc40d6439
2011-09-14 12:13:37 -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
Michael Jurka 2688c9a059 Removing unused resources 2011-07-20 16:35:06 -07:00
Winson Chung 967289b6d5 Adding new assets.
Change-Id: I20c8ceae997290781923caf195f6f87e283b1b7f
2011-07-01 12:33:32 -07:00
Winson Chung 74608b5dfc Removing the old dot.dot.dot page indicators at the bottom.
Change-Id: Ia501329223c5e80634b1f9e3f13ceac378217491
2011-06-23 13:23:38 -07:00
Amith Yamasani 6be594922f A fullscreen wallpaper chooser for all screen sizes.
The wallpaper preview covers the whole screen,
with background protection for the gallery items and button.

Change-Id: Ice31c4fea6503d1a59b59d6fbffb5e4a28eb2143
2011-06-22 11:29:38 -07:00
Daniel Sandler 4e1cd23a51 Rocket Launcher!
This is an Android Dream, which is kind of like an
interactive screensaver implemented as an Activity.

The Rocket Launcher uses the Launcher's own icon cache to
show the user's installed apps in hyperspace. Tap the screen
to slow down to impulse power.  Then, tap an icon to launch.

(depends on I4559a95 for android.dreams in support lib)

Change-Id: Ie6ce34ec1c863667faeada4f39b225f3946e8633
2011-05-26 16:02:09 -04:00
Winson Chung 785d2eb2b8 Initial changes to merged AllApps/Customize pane in the Phone UI.
Change-Id: Ifa1676736033fe617dd0cca965156c38fa452948
2011-04-22 12:53:59 -07:00
Adam Cohen f1c000ff34 New wallpaper picker assets
Change-Id: I046ca375308ab504073fa37c44e8c40b6bbbfdd7
2011-01-25 17:46:34 -08:00
Adam Cohen 4c3733f143 Adding wallpaper picker preview
Change-Id: Ib3a10bb02b249f71265fe04b3829465a77fb4a9f
2011-01-18 20:37:35 -08:00
Michael Jurka 38b4f7c5ea holo look for pressed/focused workspace icons
Change-Id: Ia964c868afd200be3828e4397659391f857599e6
2010-12-15 21:18:17 -08:00
Justin Ho f69a1493b7 Reconciling assets from designer tree and moving assets out of drawable/ and into the appropriate resolution folders
Change-Id: Ib3ddd01a9b1e2c2f1cfa00bba7372308bc9edf6d
2010-12-08 17:08:00 -08:00
Winson Chung c4ebd81971 Removing unnecessary workaround for padding on workspace icons.
Change-Id: I2ae6324e18db7b010c8d2ef5140e004da2f2b9f0
2010-12-02 11:08:11 -08:00
Winson Chung 656d11c882 Adding background protection to icons and apps button.
Change-Id: I650f9135c0ce5bc2a6f7c5f878d470d6a85e9f7e
2010-12-01 21:55:26 -08:00
Winson Chung 49767aefe5 Adding background protection for tab labels in AllApps/Customize and modified padding to match mockups.
Change-Id: I7f3b37d892fdf5a702a66d68e1bbdf333068d7ec
2010-11-30 10:51:44 -08:00
Winson Chung b4b7fa7c03 Proper fix for missing resource in other devices.
Change-Id: Ie164e42a4c5efce763160dae86b8fe3a9da51fd9
2010-11-18 14:39:11 -08:00
Winson Chung 6c807958bc Moving resource up to fix crash on load.
Change-Id: I364a8dcd5089563bbb6410c86f4f702784b02543
2010-11-18 14:12:22 -08:00
Patrick Dubroy 0207c52247 Draw glow along screen edge when dragging in portrait. 2010-11-03 22:12:53 -07:00
Patrick Dubroy de7658b5e0 Show crosshairs when dragging items around the workspace. 2010-09-29 11:14:28 -07:00
Winson Chung e3193b93ad Initital changes for new customization drawer/widget tab design.
Change-Id: I160c8777fe2657ab303acfa20934f2e90f9e953e
2010-09-15 14:45:11 -07:00
Winson Chung 80baf5a6b3 Adding paging for the widget/shortcut/folder customization area and fixing bugs.
Adding pages for customization drawer with initial implementation of proposed flow
layout for widgets.  Fixes for keeping all apps, and widgets in sync with Launcher
Model, optimizations for reloading all apps pages when invalidating.  Adding some
animations for tab transitions and feedback when long pressing to add certain items.

Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e
2010-08-16 15:51:43 -07:00
Michael Jurka 2c3af5ffb2 refreshed apps/configure button, added search button
- configure button now has a pressed state (as
  do the other two)
- also added a cast to getX() from float->int
  because of changes in the view property code

Change-Id: I57dc6e44838f4f4354f8977a3b542e93384b3d7d
2010-08-03 14:10:37 -07:00
Jim Shuma 48e4b2acef Revert "Move pngs from drawable to drawable-mdpi in project packages/apps/Launcher2/"
This reverts commit 921efb310a.
2010-08-03 09:05:44 -07:00
Gilles Debunne 921efb310a Move pngs from drawable to drawable-mdpi in project packages/apps/Launcher2/
Change-Id: I2eeac742b5279705938c91dee597bea9e983ba50
2010-08-02 15:12:10 -07:00
Patrick Dubroy 8f86ddcb90 Generate a default preview for widgets that don't have a previewImage.
Change-Id: I3a3c24543c925a50ab34fd3cbf7947544a5ac5c0
2010-07-16 14:46:07 -07:00
Patrick Dubroy 6569f2c80e When dragging items on the home screen, visualize where they will drop.
Draw a rectangle around the area where an item will land if it is dropped.
If the area is vacant, the rectangle is green; otherwise, it is red.

Change-Id: I859b52514566fa55f8c7a04493b8088d12baa476
2010-07-12 17:29:35 -07:00
Michael Jurka af44209bfa First cut at new home screen customization for xlarge displays.
- Add new layout for xlarge, removing hotseat, next/prev page, etc.
- Add a "+" button in top right which switches to customization mode
- Add a widget chooser which slides up from bottom of screen
- Initial support for dragging widgets onto home screen

Change-Id: I14e2e013ccceff4066fcb7c4492b4f6bef6595e7
2010-06-28 10:49:34 -07:00
Daniel Sandler c9b1877f9a New Launcher feature: "hotseat" icons.
The hotseats are permanent slots on either side of the
AllApps button. Their functions are:

  LEFT/BOTTOM: Phone
    Launched via the hardcoded class name
    com.android.contacts/.ContactsLaunchActivity.

  RIGHT/TOP: Browser
    Launched by querying to see which application is the
    default for URLs, then starting that activity directly.

In the future, it would be ideal to allow an application
with permission to access LauncherProvider to customize
these (icons, contentDescriptions, and Intents).

Bug: 2559083
Change-Id: I56f6e745f8574aa17e28feaa9d2118fb4a715cd4
2010-04-23 12:37:23 -04:00
Daniel Sandler 388f679aa4 Introduce 2D All Apps and other support for sapphire-class devices.
AllAppsView is now the 2D, GridView-based version (very
similar to classic Launcher); AllApps3D is the
RenderScript/Rollo implementation.

TODO:
 - some mdpi assets are not in fact mdpi
 - related to above: static wallpapers not working yet
 - add dynamic selection of 2D/3D AA; currently you must
   choose one at build time by picking the appropriate class
   in all_apps.xml (see separate CL for sapphire overlay
   that does this)

Change-Id: I253d98404ea8a329a4049d2e48edd2e5129fa6ba
2010-03-03 14:38:45 -05:00
Bjorn Bringert 7984c9496b Get rid of the built-in search widget in Launcher2
Uses the widget from packages/apps/QuickSearchBox instead.

Change-Id: I85d64defe155c0cad97fafef6a3db62c6cab504a
2009-12-09 21:48:38 +00:00
Romain Guy 9d31e9fa3d Shows all screens in the previews.
Change-Id: Ib8b19492ccb07a135ba95ab75ae03f034275c572
2009-11-11 18:56:51 -08:00
Romain Guy 8a73c51ee8 New position indicators and icons for Launcher2.
Change-Id: Id444943a3cc2e9db78733614141cbe2be837fdbf
2009-11-09 19:19:59 -08:00
Joe Onorato d63458b34c Add pressed states for the all apps button and the home button.
We'll need another asset for the selected state, when we do that.
This also updates the all apps icon to be a grid.
2009-10-15 21:19:09 -07:00
Joe Onorato 5779e2a708 Launcher2 - remove unused resources and make it not crash in landscape.
Landscape still doesn't look good.
2009-10-06 13:19:30 -07:00
Joe Onorato c91f928a8a High-resolution (hdpi) artwork from TAT for Launcher. 2009-09-21 15:17:13 -04:00
Mike LeBeau eb486df097 Replace app icon used in shortcuts selector menu with the new default app icon. 2009-09-21 15:11:49 -04:00
Joe Onorato a9c28f6f97 New trash icon. 2009-09-14 18:39:04 -04:00
Romain Guy 74621ebb5e New hdpi wallpapers.
Change-Id: I18ec902c32feaefd68bec176d9250e6bf535dc48
2009-09-10 21:53:17 -07:00
Daniel Sandler 0f3f48ee96 High-dpi version of "Google" search widget text.
Originally committed to Launcher as follows:

    Correct size for "Google" in search widget.

    Fixes http://b/issue?id=2100799 .

    Used official logo from creativelab.corp, specifically
    https://creativelab.corp.google.com/brandsite/logo-files/Glogo_flat_black.eps

    ...at 27% opacity, matching the original mdpi version.  Updated the mdpi
    version using the same source artwork so they're consistent.
2009-09-04 11:11:16 -04:00
Dianne Hackborn 622b120044 Stubs are no longer needed! 2009-08-13 13:58:13 -07:00
Joe Onorato fde104bfe9 no texture for the all apps grid. 2009-07-31 16:24:19 -07:00
Android (Google) Code Review d7013ca7ab Merge change 8193 into donut
* changes:
  Add one more pixel of padding to the top of the Google logo used in the search widget.
2009-07-22 09:01:20 -07:00
Mike LeBeau 20eecebd25 Add one more pixel of padding to the top of the Google logo used in the search widget. 2009-07-22 09:00:41 -07:00
Android (Google) Code Review efb38794c8 Merge change 8034 into donut
* changes:
  Remove gestures from Home.
2009-07-21 10:56:06 -07:00
Romain Guy 94dabf1be4 Remove gestures from Home. 2009-07-21 10:55:43 -07:00
Mike LeBeau 18fdcb6de7 Display a Google logo in the search widget if Google is the chosen web
search provider. Listen for broadcasts of that setting changing to
correctly update the widget as appropriate.
2009-07-20 19:20:58 -07:00
Romain Guy e59717b647 Remove unused asset. 2009-07-17 14:59:27 -07:00
Romain Guy 6b3f51d373 More new gestures UI. Adds a back button at the bottom of the settings activity. 2009-07-16 17:46:19 -07:00
Romain Guy 1dd3a077a2 New gestures UI. 2009-07-16 16:06:48 -07:00
Android (Google) Code Review c5df5b61b8 Merge change 7061 into donut
* changes:
  Put in new version of search floater background image to put one pixel of padding and one less pixel of margin at the top.
2009-07-13 20:46:52 -07:00
Mike LeBeau d717ca2d91 Put in new version of search floater background image to put one pixel of padding
and one less pixel of margin at the top.
2009-07-13 20:46:10 -07:00
Romain Guy 83fb0c1c42 Remove unused resources from Home. 2009-07-09 14:57:27 -07:00
Romain Guy 73b979d8c1 Add gestures to Home.
Press the Home key while in Home to enable the gestures pad.
2009-06-10 02:21:15 -07:00
Ramanan Rajeswaran 82fb8aab77 am c4c1f32: AI 148592: Fix wallpaperchooser from previewing the default_
Merge commit 'c4c1f32159cf125f60c6057e5099aa3e0dc439cf' into donut

* commit 'c4c1f32159cf125f60c6057e5099aa3e0dc439cf':
  AI 148592: Fix wallpaperchooser from previewing the default_wallpaper to wallpaper_lake. This issue is exposed
2009-05-08 13:17:39 -07:00
Ramanan Rajeswaran c4c1f32159 AI 148592: Fix wallpaperchooser from previewing the default_wallpaper to wallpaper_lake. This issue is exposed
when we override the default wallpaper.
  BUG=1836838

Automated import of CL 148592
2009-05-08 13:15:08 -07:00
Ramanan Rajeswaran d86847ee01 am fc1a6d1: AI 148132: Add two wallpapers for tmobile and set the defaul
Merge commit 'fc1a6d11747992ec1cdcc6c71899576c5bf8085f' into donut

* commit 'fc1a6d11747992ec1cdcc6c71899576c5bf8085f':
  AI 148132: Add two wallpapers for tmobile and set the default wallpaper to tmobile
2009-04-30 17:28:22 -07:00
Ramanan Rajeswaran fc1a6d1174 AI 148132: Add two wallpapers for tmobile and set the default wallpaper to tmobile
turtle
  BUG=1808772

Automated import of CL 148132
2009-04-30 17:25:21 -07:00
Karl Rosaen 138a04170d AI 147564: Merge back from search branch to donut. Notes:
- all public apis and framework changes have been reviewed by relevant folks in our branch (e.g romainguy)
  - all new public apis are @hidden; they will still get reviewed by api council once we're in git
  - other than that, it's mostly GlobalSearch and search dialog stuff, a new apps provider, and some tweaks
  to the contacts provider that was reviewed by jham

Automated import of CL 147564
2009-04-23 19:00:21 -07:00
Jeffrey Sharkey 7bd74a410b AI 143908: am: CL 143907 Make search widget drop-down wider.
Original author: jsharkey
  Merged from: //branches/cupcake/...

Automated import of CL 143908
2009-03-31 18:25:03 -07:00
Jeffrey Sharkey 1796c48dd7 AI 143907: Make search widget drop-down wider.
BUG=1749373

Automated import of CL 143907
2009-03-31 18:24:45 -07:00
Romain Guy 9b141a29ba Automated import from //branches/donutburger/...@140648,140648 2009-03-24 18:08:41 -07:00
The Android Open Source Project a6425bdead auto import from //branches/cupcake_rel/...@141571 2009-03-19 23:08:56 -07:00
The Android Open Source Project f96811cdf5 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:48 -07:00
The Android Open Source Project 7376faefbb auto import from //branches/cupcake/...@137873 2009-03-11 12:11:58 -07:00
The Android Open Source Project 31dd503c6a auto import from //depot/cupcake/@135843 2009-03-03 19:32:27 -08:00
The Android Open Source Project 3189679370 auto import from //depot/cupcake/@135843 2009-03-03 18:28:51 -08:00
The Android Open Source Project 38a75b2d89 auto import from //depot/cupcake/@132589 2009-03-03 14:04:32 -08:00
The Android Open Source Project b28e1b7d95 auto import from //depot/cupcake/@137055 2009-03-02 22:54:41 -08:00
The Android Open Source Project 233a0136ea auto import from //branches/cupcake/...@132276 2009-02-19 10:57:35 -08:00
The Android Open Source Project 98baae654d auto import from //branches/cupcake/...@131421 2009-02-13 12:57:53 -08:00
The Android Open Source Project 15a8880cb1 auto import from //branches/cupcake/...@130745 2009-02-10 15:44:05 -08:00
The Android Open Source Project 62b49bb3f5 auto import from //branches/cupcake/...@127101 2009-01-20 14:04:00 -08:00
The Android Open Source Project 0e320b21ad auto import from //branches/cupcake/...@125939 2009-01-09 17:51:25 -08:00
The Android Open Source Project d097a1880f Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:58 -08:00
The Android Open Source Project c8f00b61c6 Initial Contribution 2008-10-21 07:00:00 -07:00