Commit Graph

439 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
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
Gilles Debunne 2e9934ecb0 Merge "packages/apps/Launcher2 : added scaled hdpi version of assets that were moved to drawable-mdpi" 2010-08-03 10:56:10 -07:00
Gilles Debunne d2b7193d44 packages/apps/Launcher2 : added scaled hdpi version of assets that were moved to drawable-mdpi
Change-Id: I7225720c742dda03ce714d507f14ca4df8413990
2010-08-03 10:46:02 -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 962426e84c Merge "Move pngs from drawable to drawable-mdpi in project packages/apps/Launcher2/" 2010-08-02 15:37:23 -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
Michael Jurka 54f7ac30f2 Made some temporary aesthetic improvements
- icons in the customization drawer are now much 
  more tightly spaced, and no longer use the 
  default gallery styling
- wrapped some >100 char lines
- removed "Applications" from the shortcuts
  customization drawer
2010-08-02 13:56:46 -07:00
Michael Jurka 54dd75463d Tapping on mini-screen in All Apps view now goes back to home screen
- had to disable touch event swallowing in workspace in X-Large mode to get this to work
- also changed default screen in XLarge mode to 2 (the middle one)
2010-07-30 14:47:52 -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
Patrick Dubroy 558654c6ec Switched to tabbed version of AllApps2D on xlarge screens.
- add a temporary new zoom animation for all apps
- modify AllApps2D to allow it to be transparent
- other changes to dismiss the customization drawer when appropriate

Change-Id: I5660ab77f256ded299c1721c589983a1b30d56a4
2010-07-26 11:44:33 -07:00
Shih-wei Liao 45814e12e4 Merge "Ported Launcher2 to use the new Build system." 2010-07-19 18:48:06 -07:00
Shih-wei Liao afb81d4ac5 Ported Launcher2 to use the new Build system.
Change-Id: Ie24bb6520f9f6dfc24dde2b7810ec322bc7b3a1a
2010-07-19 16:42:48 -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 4ab2f860e7 Fixed height of all apps icon in some configurations (running N1 with DPI set to 120) 2010-07-12 16:36:06 -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
Alex Sakhartchouk 1bdb9d3467 Switching allapps to use Mesh instead of SimpleMesh.
Change-Id: I678525439341d54e6841df3df2d7ab0c67c0b266
2010-07-01 16:12:27 -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
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
Jason Sams 1444e6e29c Merge "Code cleanup possible with new reflected classes." 2010-06-21 17:44:53 -07:00
Kenny Root cfc73db0c3 am 8a3ef2ed: Import revised translations
Merge commit '8a3ef2ed6c2cc89ae96384358fa5fcba58b50ac0'

* commit '8a3ef2ed6c2cc89ae96384358fa5fcba58b50ac0':
  Import revised translations
2010-06-21 10:16:51 -07:00
Kenny Root 8a3ef2ed6c Import revised translations
Change-Id: I8b250fac67c854a118fd481466e2e28f773e2229
2010-06-20 18:58:37 -07:00
Jason Sams 60a55bbf54 Code cleanup possible with new reflected classes.
Change-Id: If9e79383722c0df997526717c52ded4921b6663e
2010-06-18 15:11:19 -07:00
Jason Sams 1aa4ff083c Update AppApps to use reflected files.
Previous files were hand written placeholders.
This also fixed the physics bug where movement was right.

Change-Id: I98838084d60f0eaf22f7fbd148a80b2f73f9a14c
2010-06-15 17:13:46 -07:00
Shih-wei Liao 4d7c5cd993 Merge "Add pragma on java package name, for reflection purpose." 2010-06-14 16:11:43 -07:00
Shih-wei Liao c8149656bc Add pragma on java package name, for reflection purpose.
Change-Id: I30a3cc2177b320a76d093cd018216ae936e81150
2010-06-14 11:46:11 -07:00
Kenny Root 2061acae28 am a9bda02f: Import revised translations 2010-06-09 22:51:11 -07:00
Kenny Root a9bda02f7c Import revised translations
Change-Id: I1c61fee7e093d6f1dc9bb1f178ebec89378e2754
2010-06-09 22:37:22 -07:00
Daniel Sandler 9d2b252cb7 am 6662645a: Merge "Make 2D All Apps work better in landscape and on hdpi." into froyo 2010-06-03 14:17:47 -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
Jason Sams 13a75d5f1e Update names and move clear to script.
Change-Id: I17af3cd027248f52ce6516f81968c6b3d976a09d
2010-05-19 18:58:48 -07:00
Jason Sams 29ebdeaa1f Merge "Fix regression in master. The attempt to remove the last frame hack in all apps caused home to sometimes render black upon returning from an application." 2010-05-18 17:07:49 -07:00
Jason Sams 5c1417acfc Fix regression in master. The attempt to remove the last frame hack in
all apps caused home to sometimes render black upon returning from an application.

Change-Id: I4444d7a6e62548f5a996c12b7e11aa46876d44e4
2010-05-18 17:06:04 -07:00
Kenny Root 93c0985c42 am d0b7a8cf: Import revised translations 2010-05-17 15:03:58 -07:00
Kenny Root d0b7a8cf2b Import revised translations
Change-Id: I627268e91946716036c1a37b22db48326ce7007d
2010-05-17 11:35:17 -07:00
Jason Sams ad1bdf0204 Launcher2 cleanup.
Will remove dead script functions once reflection is working.

Change-Id: Ieffcf55047b5e241a8cffb1852619d04e1a00d53
2010-05-14 17:55:13 -07:00
Jason Sams 14f67edd3f Update Launcher2 to work with LLVM.
Change-Id: I992b812ec58d182e5df7ddad3ab8e7d9e7b88551
2010-05-11 14:02:43 -07:00
Ficus Kirkpatrick 24c0a79821 Update default homescreen layout to latest design.
Change-Id: I3e5699a22103af1fa9c7ec476f4401a53771e5a0
2010-05-03 12:06:08 -07:00
Kenny Root 82faa75153 Import revised translations
Change-Id: I46c56ec11d883a3df1bf43944ea66240a5ea3962
2010-04-29 15:35:49 -07:00
Ficus Kirkpatrick 9d179ade1a Merge "Add Market widget to default workspace." into froyo 2010-04-28 15:49:10 -07:00
Ficus Kirkpatrick 3862a6639a Add Market widget to default workspace.
Bug: 2606783
Change-Id: I8ea5e3564a21b98aadb8789e24276507c7ef46b7
2010-04-28 15:23: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 de38c8e42d Merge "Updated hotseat artwork." into froyo 2010-04-28 13:41:58 -07:00
Daniel Sandler 0554b74917 Merge "Hotseats: better strategy for finding the default browser." into froyo 2010-04-28 13:32:44 -07: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 786ae544e4 Updated hotseat artwork.
Also closes the gap below the buttons (not visibly, but the
hit rect now reaches the bottom of the screen). Bug: 2630273

Change-Id: I8e8de6b63f91b2fcf87c3af856003cc36dd6c096
2010-04-28 11:30:44 -04:00
Kenny Root 1b626a4af2 Import revised translations
Change-Id: Ia9b370372f0ea1ae5271030d946db621161f30a2
2010-04-27 13:39:00 -07:00