Commit Graph

389 Commits

Author SHA1 Message Date
Daniel Sandler 14b0ba69f3 Fixed mdpi hotseat background artwork.
Bug: 2559083
Change-Id: I969b13227b12a62484c9a91cb671128a3f3c2398
2010-04-23 15:22:10 -04:00
Daniel Sandler 95767e3808 Merge "Add widgets to default home screens." into froyo 2010-04-23 10:40:10 -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 9cd2e4164a Add widgets to default home screens.
0: (nothing)
  1: News & Weather
=>2: Search; Protips
  3: Music
  4: (nothing)

Will add Market widget to screen 2 (center) when available.

Bug: 2559083
Change-Id: Id025bfbb1514959906d7d42601c3358ef870aebe
2010-04-23 12:08:40 -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 55dcedfcc3 Remove all icons and most widgets from default homescreens.
Bug: 2559083
Change-Id: Id77fe641520c36eaee10f10c04d7df04b7637184
2010-04-08 15:39:18 -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 8b5eef7d3f fix 2554422 - Landscape workspace dots have stretched aspect ratio
Change-Id: I9f0ef8370bbf3e73f86dabf006372fc243f302b9
2010-03-29 16:19:42 -07:00
Joe Onorato 20e7a56658 Fix 2524488 Not able to launch app in the last line of app launcher in landscape mode
Change-Id: Iffe3e95a10e49f1dadcab2f4f177e79c0140699e
2010-03-18 17:12:52 -07:00
Kenny Root a66bf91d4d Import revised translations
Change-Id: I1b4b8c830701a1aa08a31a78fdff92216bf2ef5f
2010-03-17 22:14:17 -07:00
Jason Sams cc903494fa Fix stop point for physics in landscape.
Change-Id: I4ca8fcf9d65746116b3c244e724344d8f90eeba0
2010-03-12 12:46:04 -08: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
Daniel Sandler 73a0554de1 Fix trackball focus weirdness in AllApps2D.
Also vertically align AllApps2D's home icon with Workspace's
grid icon.

Change-Id: I81a8759ed33afd08336482484f1b9bdb9a36718e
2010-03-11 09:00:51 -05: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 a4503708ea Updated mdpi art.
Bug: 2485104
Change-Id: I6a84768f45141528361eaee1f0ce4b37e50ca487
2010-03-09 11:00:12 -05:00
Jason Sams 638a93d73b Give up on caching the computed animation state as it keeps causing bugs
where we don't correctly re-initialize it when starting in various states.

Change-Id: Id648c7bba5d8b55a32b5b33363ddf6e74701df87
2010-03-08 17:03:51 -08:00
Daniel Sandler af6db10ca5 Speed up 2D AllApps fade-in.
Change-Id: I466c97cb63687ec3dab5109a8e77445e78e8b3ee
2010-03-08 14:41:21 -05:00
Daniel Sandler fe609f3bab Swap in the classic Android wallpapers in mdpi.
hdpi devices will see the Nexus wallpapers; mdpi devices
will see the old wallpapers.

Change-Id: If019eb90e9d67ede7865a8ea9f7a330d43a664ab
2010-03-05 11:02:55 -05:00
Daniel Sandler 46e47d03b3 Change the way 2D/3D AllApps are selected.
all_apps.xml is now a trampoline that loads the correct layout file.

Also take this opportunity to make 2D the default.

Change-Id: Iba2500da1bf4f505f1a5c2f6f32ed6e72ec34c5f
2010-03-04 16:16:20 -05:00
Romain Guy 4f20947fd6 Update launcher's namespace. 2010-03-04 12:07:31 -08:00
Daniel Sandler 28d10f8478 More mdpi artwork.
Change-Id: I53f7985a2fe0dc4e61143242c110f3604e8ed1a1
2010-03-04 12:19:30 -05:00
Daniel Sandler 63206c8ed7 New mdpi artwork for L2.
Change-Id: Ie4b209a3cda914a547b0fc6abfc81a0a681aa5ee
2010-03-04 09:18:37 -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 384fb17576 Fix folders asset.
Bug #2478416
2010-03-01 10:15:39 -08:00
Eric Fischer 8c0aab14ee Import new translations. 2010-02-26 17:31:07 -08:00
Jason Sams 2a13155e04 Fix single frame flicker when AllApps did its pre-load WAR that forced the driver to render one frame. 2010-02-26 13:50:31 -08:00
Jason Sams 6b08ffe664 tweak alignment of all apps to avoid filtering artifacts. 2010-02-22 15:41:42 -08:00
Joe Onorato f0dde0927b Don't do the haptic feedback on workspace items when they're not being picked up.
related to bug 2309687
2010-02-16 18:25:23 -05:00
Joe Onorato 0589f0f66c Split ApplicationInfo into ApplicationInfo which is used for AllAppsView and ShortcutInfo which is
used for the workspace.

Consolidate the three icon resampling functions into one.

Ensure that the icons stored in LauncherProvider are the right size, so we don't have to resample
them each time we load them.
2010-02-12 12:18:40 -05:00
Jason Sams 7651248dd1 Support rotation of the all apps screen. 2010-02-04 16:38:48 -08:00
Romain Guy 442eda2cc1 Fix texture generation issue on Home. 2010-02-04 15:59:37 -08:00
Joe Onorato 3ae1b4d579 Merge "Clean up the workspace layout so it makes sense in landscape." 2010-02-03 11:14:27 -08:00
Jason Sams e78ace9e7f Fix flicker with HW WAR for drawing one frame during init. 2010-02-02 17:37:44 -08:00
Joe Onorato 57a7aaa494 Clean up the workspace layout so it makes sense in landscape. 2010-02-02 08:31:50 -08:00
Jason Sams 6471c8b2ab Fix entry/exit animation to better follow DT. 2010-01-20 14:15:22 -08:00
Jason Sams 1a94ee3a8b Fix selection highligh in all apps. Selection highlight now follows the curve and uses a smaller bitmap. 2010-01-20 13:34:30 -08:00
Jason Sams 37f262d924 Fix issues with text drawing in Froyo for all-apps. 2010-01-20 11:19:51 -08:00
Jason Sams 6ec11bc3a8 Change text labels from RGBA to ALPHA8. Reduces memory usage and may increase performance. 2010-01-19 17:56:52 -08:00
Jason Sams b4ecab24db Update launcher2 with vertex shader and single draw method for icons. 2010-01-19 16:43:26 -08:00
Romain Guy 8f19cdd62f Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:52 -08:00
Eric Fischer 677298ac89 Update with latest translations. 2010-01-07 15:58:34 -08:00
Jason Sams d15f3ef981 cleanup RS scripts leftover from previous design and rename final script. 2010-01-06 14:58:06 -08:00
Bjorn Bringert 540e9576e1 am ca1ae49c: am 7984c949: Get rid of the built-in search widget in Launcher2
Merge commit 'ca1ae49cebd6b0cc56be4e83a69d279c141533a6'

* commit 'ca1ae49cebd6b0cc56be4e83a69d279c141533a6':
  Get rid of the built-in search widget in Launcher2
2009-12-10 14:40:13 -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 a6f64107ac am 1e303bb7: am 55df44f1: am 811954cf: Merge change I7df54f9d into eclair
Merge commit '1e303bb7d2ec6e531c93832a02050d9c8d79b9c5'

* commit '1e303bb7d2ec6e531c93832a02050d9c8d79b9c5':
  Clean up name of static wallpapers.
2009-12-02 20:39:47 -08:00
Daniel Sandler 55df44f127 am 811954cf: Merge change I7df54f9d into eclair
Merge commit '811954cf77a702663b237165ab1b11a600b73d0d' into eclair-mr2

* commit '811954cf77a702663b237165ab1b11a600b73d0d':
  Clean up name of static wallpapers.
2009-12-02 12:54:43 -08:00
Android (Google) Code Review 811954cf77 Merge change I7df54f9d into eclair
* changes:
  Clean up name of static wallpapers.
2009-12-02 12:49:40 -08:00