Commit Graph

56 Commits

Author SHA1 Message Date
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 cbe7f20ad7 Move batch size to a resource.
This way we can figure out how many apps to send to the grid
at a time even if the grid hasn't been instantiated yet.

Bug: 2599979
Change-Id: I7960fe1adae6976555334422335f3a4b28d0675e
2010-04-19 14:47:18 -04:00
Daniel Sandler 2ff10b3b01 More Launcher performance improvements.
* Removed another redundant sort
* Correctly set the thread priority to BACKGROUND for the
  all apps loading step.
* Moved batch delay to a resource
* Reduced delay between loading batches of apps to 100ms
  (we really just want to sleep a tiny bit between batches
  to give the UI time to react)

Bug: 2562420
Bug: 2599979 (related)
Change-Id: I1ae72a68c1a47377a9eb62827fe7666bfc50caa5
2010-04-16 15:17:01 -04:00
Daniel Sandler a78512c681 Merge "Slow down 2D All Apps fadeout." into froyo 2010-04-06 09:46:56 -07:00
Romain Guy 3af600182f Last minute hack to deliver touch events to widget in landscape mode.
Bug #2562729

In landscape, the left and right dots buttons are 93dip wide; this makes them overlap
with widgets at the bottom of the screen. The dots do not need to be that wide but
we chose this size to make it easier to tap them in portrait. To avoid issues in
landscape, this change introduces a new type of ImageView that can ignore touch
events in a certain zone. This was easier and cheaper than re-cutting 36+ assets.

Change-Id: Id261fba41a43dede943e72060e39e87658e4b0df
2010-04-05 18:39:24 -07:00
Daniel Sandler 80c4f3e1b8 Slow down 2D All Apps fadeout.
Change-Id: Ifd8564bca26265540589a48ea281e8ce9fa1001e
2010-04-02 15:08:16 -04:00
Joe Onorato e075e1f106 bug 2480004 - add some descriptions for the string in home
Change-Id: Ie01900dcb6fd6381d18dcfa80bddb7bfdff19b13
2010-03-11 11:55:26 -08:00
Dianne Hackborn 12687cf144 Allow shared user id and process to be set via overlays.
This fiddles the manifest to allow the app's shared user id and
process to be changed at build time via resource overlays, so we
can build launcher to run in the acore process for low-end devices.

Also switches the cert of launcher back to shared, to allow for
this.  (Note this only really matters if the shared user id is set,
otherwise launcher will still get its own uid.)

Change-Id: I0bd0a06e1442c4bfe5ceb2d438cb58f29d911578
2010-03-09 17:18:11 -08:00
Daniel Sandler af6db10ca5 Speed up 2D AllApps fade-in.
Change-Id: I466c97cb63687ec3dab5109a8e77445e78e8b3ee
2010-03-08 14:41:21 -05: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
Romain Guy 442eda2cc1 Fix texture generation issue on Home. 2010-02-04 15:59:37 -08:00
Romain Guy 8f19cdd62f Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:52 -08: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
Daniel Sandler 0d15cf99c0 Clean up name of static wallpapers.
Change-Id: I7df54f9d13f9808329515eb7b317b21c5ba77afb
http://b/2261747
2009-12-02 14:37:05 -05:00
Joe Onorato 52a653f3ff Fix 2241848 - 3D apps folder does not send accessibility events
It's now sending them.  The beeping and vibrating accessibility things
work, but we only have prebuilts for the speech one and it's not saying
anything and I can't debug it, so this will have to do.
2009-11-11 14:52:11 -08:00
Romain Guy 1fbc1c8431 Add previews on long press on the indicators.
Change-Id: I6349d55345255caacc1381e83459544f8b8e085c
2009-11-09 20:45:03 -08:00
Mike Cleron b87bd16c8e More capabilities for default home configuration
Added support for adding appwidgets beyond clock and search to the
intital configuration. Also pulled in a previous change in Launcher that
allowed http shortcuts. New syntax looks like this in
default_workspace.xml:

     <appwidget
        launcher:packageName="com.android.settings"
        launcher:className="com.android.settings.widget.SettingsAppWidgetProvider"
        launcher:screen="0"
        launcher:x="0"
        launcher:y="2"
        launcher:spanX="4"
        launcher:spanY="1" />

    <shortcut
        launcher:packageName="com.android.settings"
        launcher:icon="@drawable/ic_launcher_appwidget"
        launcher:title="@string/group_folder"
        launcher:uri="http://www.nytimes.com"
        launcher:screen="2"
        launcher:x="2"
        launcher:y="2" />
2009-10-30 16:36:56 -07:00
Eric Fischer a98fd30d86 Restore missing string that was still referenced from code.
Approver: jerryw
2009-10-21 11:36:31 -07:00
Romain Guy a45f664227 Remove live wallpaper picker from Launcher2.
Change-Id: I2c48f3624128276c3460939960168163d3c74c08
2009-10-16 15:46:55 -07:00
Joe Onorato 44c9b646b7 Add high dpi wallpapers. 2009-09-21 15:32:43 -04:00
Eric Fischer e461dc6ffe Armor string format tokens with translation placeholders.
Change-Id: Ibe4d4fea7caff285f67382cc17f2f9261cf1f92c
2009-09-21 15:15:46 -04:00
Romain Guy 74621ebb5e New hdpi wallpapers.
Change-Id: I18ec902c32feaefd68bec176d9250e6bf535dc48
2009-09-10 21:53:17 -07:00
Dianne Hackborn 8355ae39ad Add "Configure..." to wallpaper menu for configurable live wallpapers.
Change-Id: I41a2e68192acfed60cce344ac1e0cd886a54f348
2009-09-07 22:57:13 -07:00
Romain Guy 8eb509596b Add the ability to replace all wallpapers with overlay resources.
Change-Id: I516c0972c04dc7e07801a2e3c297e1d0f0f96f9a
2009-09-02 15:57:21 -07:00
Joe Onorato c567acb6c3 Add the all apps button. 2009-08-31 14:34:43 -07:00
Dianne Hackborn 02e638e6bf Implement previews in the wallpaper picker.
Note that the UI is ugly ugly ugly, but previews are actually working.
2009-08-20 19:33:42 -07:00
Romain Guy 41669fc9c6 Add live wallpapers picker to Launcher2. This is temporary.
This change requires changing the signature and shared user id of Launcher2, we
will have to revert this once we move the wallpapers picker back to Settings.
2009-08-13 12:53:24 -07:00
Romain Guy ccb9d2ad93 Remove live wallpaper 2009-08-12 10:57:28 -07:00
Romain Guy 3ccdf2f576 Add Grass live wallpaper to Launcher2. It's ALIVE! 2009-08-11 17:14:07 -07:00
Romain Guy b1b69f53a8 Enable live wallpaper in Launcher2 2009-08-10 15:10:15 -07:00
Joe Onorato 00acb123c5 Move the drag thing into its own window that goes around on top of everything else. 2009-08-06 12:45:43 -07:00
Joe Onorato fde104bfe9 no texture for the all apps grid. 2009-07-31 16:24:19 -07:00
Joe Onorato a5902524d4 Launcher2 compiles. 2009-07-30 13:37:37 -07:00
Leon Scroggins 142868a4a4 Change "Shortcut <> is installed" to "created"
See http://b/issue?id=1861557
2009-07-22 13:15:14 -04:00
Romain Guy 94dabf1be4 Remove gestures from Home. 2009-07-21 10:55:43 -07:00
Romain Guy 1dd3a077a2 New gestures UI. 2009-07-16 16:06:48 -07:00
Dianne Hackborn f22875368c Change name for home's uid to something more generic.
There are lots of things running under home's uid, so give it a more generic
name.  Home no longer to blame for all the world's ills!
2009-06-24 20:30:24 -07:00
Romain Guy 800c215fa8 Fix the build 2009-06-24 17:38:45 -07:00
Romain Guy 840f0d72e8 Add the few missing strings needed by Home. 2009-06-24 17:25:39 -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
Mike LeBeau 692935664e Modify comments in Launcher strings for global search. 2009-05-08 14:27:31 -07:00
Jeff Sharkey 70864289fb Make Launcher more forgiving when dragging desktop items.
This change adds nearby-area searching when dragging desktop items into already-occupied cells.  This approach tries harder to find a matching area, instead of strictly rejecting invalid moves.

We also draw a "snag" during the drag to show where an item would be dropped, but only if we would drop into an alternative cell.  This gives users better feedback about where things will drop.

http://b/issue?id=1634887
2009-04-08 16:44:27 -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 3fca10b8cd AI 143792: am: CL 143746 Fix search widget assets to not overlap in landscape mode.
Done by using small button framework assets, but with manual padding adjustments to bring back to original button size.
  Original author: jsharkey
  Merged from: //branches/cupcake/...

Automated import of CL 143792
2009-03-31 14:59:08 -07:00
Jeffrey Sharkey 37c2345627 Automated import from //branches/donutburger/...@142040,142040 2009-03-24 21:21:35 -07:00
Romain Guy d93a7d1716 Automated import from //branches/donutburger/...@142016,142016 2009-03-24 21:17:50 -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