Commit Graph

1584 Commits

Author SHA1 Message Date
Michael Jurka f6710fa8af telling proguard not to strip three onClick handlers
that are only used by reflection (they are 
  referenced in layout-xlarge/launcher.xml)
2010-08-04 11:08:04 -07:00
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 7ef4f752e1 fixed crash on phones
(didn't initialize a variable properly)
2010-08-03 16:04:26 -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 79212d8136 Fixing bugs related to starting in All Apps mode
- fixed bug where Workspace.shrinkToBottom() was 
    not always called in showAllApps
- added logic to defer call to 
    Workspace.shrinkToBottom() after first layout
    call (necessary because shrinkToBottom relies
    on getWidth() working properly)
- added ability to Workspace.shrinkToBottom()
    without animation

Change-Id: I966141a60b6b014cf97e83b4d45725b41b16e55d
2010-07-30 17:39:39 -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
Michael Jurka b0f28bd9a5 fixed bugs with layout in Launcher
- fix bug where calling unshrink on initialization was setting all the screens' x coordinate to 0
- fix bug where mScrollX was not synched to the proper value for the mCurrentScreen it was on
2010-07-30 12:04:12 -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 9460f88423 Merge "Improved support for workspace screen thumbnails" 2010-07-28 15:23:24 -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
Jason Sams f96f73027d Merge "Cleanup setToClient calls." 2010-07-28 14:15:09 -07:00
Jason Sams 500d36e2ac Cleanup setToClient calls.
Change-Id: Ie2898f44d623f34e1243d62417d4884e8ca649c1
2010-07-28 11:15:33 -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 ff5f040de1 isOpaque is not appropriate for AllAppsTabbed; replace with isAnimating(). 2010-07-26 15:23:42 -07:00
Dianne Hackborn 13f011e352 am 2d86dfec: Fix launcher updating when all of an app\'s activities disappear.
Merge commit '2d86dfec5797bfd4fba78562032c14bd9b6cfa7a'

* commit '2d86dfec5797bfd4fba78562032c14bd9b6cfa7a':
  Fix launcher updating when all of an app's activities disappear.
2010-07-26 13:19:38 -07:00
Patrick Dubroy ab962b75ee fix 2869807: Crash on boot on trygon-userdebug
Change-Id: I59f0d653e498a69bd240232b8bb89884aa0c324d
2010-07-26 12:15:55 -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
Dianne Hackborn 2d86dfec57 Fix launcher updating when all of an app's activities disappear.
Also uses a more efficient way to get all activities for a package.

Change-Id: Ic360082f0a728cf1b388af18b22122bfce866149
2010-07-24 16:48:01 -07:00
Shih-wei Liao 401d892f4c Slang made the rs_types.rsh and rs_math.rsh the default include files. Delete them in allapps.rs.
Change-Id: I99f477bb779eac244315baeaef028947d85625d4
2010-07-21 12:32:17 -07:00
Shih-wei Liao 163feaee4d Fix the simulator build.
Change-Id: I7b9530320538871ede62cb361466bf397f8fdbbc
2010-07-20 01:22:10 -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 5999f114b9 Merge "Fix null pointer when dragging outside of workspace." 2010-07-16 15:49:32 -07:00
Patrick Dubroy c1701ad4b2 Fix null pointer when dragging outside of workspace. 2010-07-16 15:43:04 -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 379f16080f fix 2841060: Folders appear to accept drag-and-drop of widgets
Change-Id: I6e408c25d52c8b3a5f64149326df901fce1ce597
2010-07-14 11:29:09 -07:00
Patrick Dubroy 6d5c6ecb5f Fix bug with estimate drop cell offset
Change-Id: I9b8370a858dab7d656bbfb1897e469ef4f2aec06
2010-07-14 11:14:54 -07:00
Patrick Dubroy 440c360bc3 Fix bug with drag visualization and UserFolders.
When dragging an app shortcut, it was possible that we'd show a red rectangle
around a cell occupied by a UserFolder. This shouldn't be possible -- as soon
as that cell becomes the target drop cell, the folder should start handling
the drag and drop events.

Change-Id: I1b7a8b1aa9aeb7e2f1bd51ce8d947c06455e988f
2010-07-13 17:54:03 -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 946ad470c7 Fixing runtime error on non-xlarge devices
Previous commit made Launcher a subclass of TabActivity, but there is no TabHost in non-xlarge layouts; Launcher now subclasses from Activity and no longer assumes that there must be a TabHost

Change-Id: I496496a602e43768d79113c7090435119cb4e5e5
2010-07-09 19:18:12 -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
The Android Open Source Project 6404116682 am 004f9d77: set up fast-forward from froyo-release to gingerbread
Merge commit '004f9d772ce44a95111e38e9a447074b090b37f9'

* commit '004f9d772ce44a95111e38e9a447074b090b37f9':
  Filter input events and smooth out touch scrolling. Bug 2639807
  Fix proguard flags.
  Sort apps in AllApps3D.setApps().
  Launcher2 performance: Don't sort apps in LauncherModel.
  resolve conflicts
  Bug 2509023 - NPE on upgrade to froyo
  Unbind root script around load activities to prevent commands from being delayed due to swap buffers.
  Fix 2507267 - stack overflow when adding shortcut
2010-06-29 14:42:34 -07:00
The Android Open Source Project 004f9d772c set up fast-forward from froyo-release to gingerbread
Change-Id: Ib51715745e382bdc0cb3130afed110a6307b7059
2010-06-29 14:34:53 -07:00
Patrick Dubroy b848ba188d In the WidgetChooser, show the widget preview (if available) rather than the icon
Change-Id: I4d4ef7f31027e198b2f215f3e2d91da41e6ae99e
2010-06-29 10:36:30 -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
Joe Onorato ff68ed0595 am 68925c53: Merge "Make the loader thread a Looper and move the package manager updates into that thread as well." into gingerbread
Merge commit '68925c535932b7cbb8aafb4f981f23ef2887a1c4'

* commit '68925c535932b7cbb8aafb4f981f23ef2887a1c4':
  Make the loader thread a Looper and move the package manager
2010-06-23 10:18:29 -07:00
Jason Sams 1444e6e29c Merge "Code cleanup possible with new reflected classes." 2010-06-21 17:44:53 -07:00
Joe Onorato 68925c5359 Merge "Make the loader thread a Looper and move the package manager updates into that thread as well." into gingerbread 2010-06-21 16:06:50 -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