Commit Graph

65 Commits

Author SHA1 Message Date
Adam Cohen d22015cd37 Cleaning up grid size specification in Launcher
This commit eliminates the notion of in-place rotations and a bunch of
associated complexities (including the notion of canonical coordinates).
Further, the number of x and y cells per workspace screen is now being stored
in a single location in the XML definition of Workspace. This fixes a couple
bugs where incorrect values were being used. Finally, eliminated the notion of
"shortAxis" and "longAxis" in terms of padding and cell count. These have been
translated to corresponding x and y axis values.

Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c
2010-08-04 11:03:47 -07:00
Patrick Dubroy 3d605d5bbe Make tabs in all apps actually filter the list of apps. 2010-07-29 16:09:27 -07:00
Michael Jurka 213d96354e Improved support for workspace screen thumbnails
- Shrinking workspace view in All Apps
- Added vertical margin for workspace screen thumnbnails
- Fixed bugs in a few of the Launcher state transitions (e.g. customization to all apps)

Change-Id: I9ad1c8861585d78fdb2e3bc986a614526b3cfe5f
2010-07-28 15:11:27 -07:00
Michael Jurka dee0589388 Home screen now shrinks while customizing
- added a shrink/fade animation on home screen when going into customization mode
- made items in the customization drawer larger

Change-Id: Iddbaf14aa5b1504fe94966971a1ab95c00f24331
2010-07-27 15:53:04 -07:00
Michael Jurka 0e26059548 Improving home screen customization
- Created a drawer with tabs for widgets, folders, shortcuts, wallpapers
(wallpapers are currently not implemented)
- Tapping outside the drawer dismisses it
- Moved the all apps icon to the upper right of the screen
- Adding a toast that says "No more space on screen" when dragging a widget to a full screen
- Fixed bug where you could stack two equal-sized widgets on top of each other on the homescreen (exposed by the new ability to drag widgets onto the home screen)

Change-Id: I03b65ce54a85d24328c94e0c06e249571de449ee
2010-07-09 11:56:45 -07:00
Winson Chung aafa03cbb9 Allow for NxM layout and in-place rotation of items on homescreen.
Currently, rotation is disabled as designs are still in flux, but the NxM grid is enabled (8x4).

Change-Id: I0026f88c674719e3d67de6d6d481d2d4cd606362
2010-06-30 16:24:40 -07:00
Daniel Sandler 86b40541a8 Make 2D All Apps work better in landscape and on hdpi.
* Correct the density (or, rather, remove the density) of
  the icons in the cache to ensure they're drawn px-for-px.

* Create a new landscape layout for 2DAA that aligns things
  properly (viz: Home icon at right, padding tuned, 6
  columns).

* Performance improvement: Make the app grid, icons, and
  home icon all opaque (by setting a black background) and
  move the home icon so it doesn't overlap the grid.

Change-Id: I961323e9e39cb122cdc694853706e7fcdd10142f
2010-06-03 10:35:44 -07:00
Daniel Sandler e1d923a67a Increase hot rectangle of trash can.
The drop region is now 70dip^2. This means it invisibly
overlaps nearby icons ever so slightly---not enough to
prevent icons being properly dropped on the workspace.

Bug: 2623734
Change-Id: I945160ef6bdfc0a4ac3cf9db57d440bad424dfc4
2010-04-28 16:42:33 -04:00
Daniel Sandler ab1ebd7e6f Hotseats: better strategy for finding the default browser.
To do this, we invoke resolveActivity to see what activity
would result from viewing an arbitrary (but valid) URL. If
there's just one installed, or there are multiple and the
user has chosen a default handler for http:, we take that
component and launch it with CATEGORY_HOME (so as not to
upset the URL in the frontmost window/tab/what-have-you).
We also use this information to extract the localized name
of the app, which is then installed into the hotseat as the
contentDescription (for accessibility).

If there's no default and multiple options are availble,
we'll get the activity chooser instead. In this case, we
just fire off that chooser and let the user pick an app
(possibly setting a default along the way). Because the
default may change, we reload all this hotseat information
every time one of the hotseats is tapped.

Another side-effect of this approach is that until there
exists a default browser, the original URL will be sent to
the activity the user chooses from the ResolveActivity. So
we need a sensible default URL here; one can be found in
R.string.default_browser_url (similar to Browser's
R.string.homepage_base).

This change also moves the hotseat intents and icons into
arrays.xml for easier configuration.

Change-Id: I06268df8b59e0f41f1f8b0e47f823db4c44ec761
2010-04-28 15:52:54 -04: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 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