Commit Graph

4413 Commits

Author SHA1 Message Date
Michael Jurka 01f0ed4126 pressing home twice shows small overview mode
Change-Id: If5a6c0942685cd52ef77562dd342f28e16ae571c
2010-08-23 15:26:14 -07:00
Michael Jurka 7898466dc0 Merge "Fixed bug where custo drawer remained open after power-off" 2010-08-23 15:06:29 -07:00
Michael Jurka 909f915286 Fixed bug where custo drawer remained open after power-off
Change-Id: I41f39b533fdd7b42b0f2085f8912c1bd30ec1ab2
2010-08-23 14:55:18 -07:00
Winson Chung 9de2296c4c Merge "Fixing alpha issue on AllApps." 2010-08-20 15:20:15 -07:00
Winson Chung affd7b4d23 Fixing alpha issue on AllApps.
Change-Id: Ifbd81b3e8009cff963bb03bd953e498f8677cc38
2010-08-20 15:17:26 -07:00
Michael Jurka 96226223d9 clicking on mini screens no longer sends click to widgets/icons
Change-Id: Iee905655151dfe1d00acd776752525d3fcc9b0e1
2010-08-20 00:54:40 -07:00
Winson Chung 03c568e608 Fixing issue where recycled views' holographic overlays were not being regenerated.
Change-Id: I879eaf2379490ce99d20cb6c0887b7881e580021
2010-08-19 17:28:24 -07:00
Winson Chung b3347bb9f4 Adding holographic outline for paged items (sans widgets).
Fixing possible null ptr exception in Launcher.

Change-Id: Ie625a6503299cf122e5c22852846d59e66f77414
2010-08-19 16:00:41 -07:00
Patrick Dubroy 4ed6278e51 Implement button to get application info for an app shortcut.
For now, it's just a drag target like the delete zone. Once all apps
and the home screen support a selection mode, this (and delete) will
be implemented as buttons in the Contextual Action Bar.

Change-Id: I6bf43d03eefda672ea34c583a7021137da22b184
2010-08-18 17:57:59 -07:00
Romain Guy f07e7a441c Merge "Add a default wallpaper for xlarge devices." 2010-08-18 11:39:08 -07:00
Romain Guy 5bbc91bbbc Add a default wallpaper for xlarge devices.
Change-Id: Icaf3fc953ca6d469d17620c0aec789e7f60c924e
2010-08-18 11:38:46 -07:00
Winson Chung 6935ffd450 Adding check before setting alpha of side pages in a PagedView to prevent constant invalidations.
Change-Id: I4fbb66a851d6cbcd916212e86ed8ba85a9226b02
2010-08-17 14:28:06 -07:00
Michael Jurka b2c838c2eb removed the temp screen rotation button
Change-Id: I26d5a840270065e43d4f66b3c53c7e9d52ce4200
2010-08-16 20:53:10 -07:00
Winson Chung 80baf5a6b3 Adding paging for the widget/shortcut/folder customization area and fixing bugs.
Adding pages for customization drawer with initial implementation of proposed flow
layout for widgets.  Fixes for keeping all apps, and widgets in sync with Launcher
Model, optimizations for reloading all apps pages when invalidating.  Adding some
animations for tab transitions and feedback when long pressing to add certain items.

Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e
2010-08-16 15:51:43 -07:00
Winson Chung 321e9ee688 Creating generic Workspace/CellLayout for paged views in Launcher.
Adding SimpleWorkspace, SimpleCellLayout and an AllApps implementation of the SimpleWorkspace.
Making SimpleWorkspace support content with smaller dimensions than the workspace dimensions
itself.  Temporary change to AllApps tabs styling until we get new assets for tabs in general.

Change-Id: Ibe3c56603223853d232816b6695e4ddd757857ba
2010-08-16 15:50:40 -07:00
Jason Sams f0d03e4e7f Use RS API for checking isNull.
Change-Id: I840c2ac3d0fe478595f2a558b52a79886097c5b5
2010-08-13 12:18:36 -07:00
Michael Jurka c28de51eed fixed crash in addVacantCell
No longer precalculating vacant cells

The previous way of finding empty cells for 
widgets/icons etc. precalculated all the possible
empty spaces. Now that we have an 8x7 grid in
tablet, there are too many possible empty spaces.

Change-Id: Ib39113fdf755935bfad257843e1618c680ed9e72
2010-08-13 11:59:51 -07:00
Adam Cohen da4dc5edd8 -> Set grid to 8x7 with proper spacing for landscape/portrait
-> Added a button to the top left of Launcher which switches
   between landscape and portrait. For testing purposes only.

Change-Id: I01f8cfcf92c8ba7727eeba0e59a0b8ff055598fe
2010-08-11 10:46:55 -07:00
Patrick Dubroy a67e867db9 Fix workspace shrinking bug caused by change in animations
Change-Id: Ia34ae2a6cb863da28d319c46a95f61536cd31ade
2010-08-10 18:13:41 -07:00
Michael Jurka 4cb3724a2c workspace bug fixes
- fixed: pressing home sometimes left workspaces
in shrunken state
- fixed: position of delete zone (trash icon)
- fixed: workspace unshrink sometimes looked weird
when coming from all apps
- fixed: clicking power button and returning left
workspace in shrunken state

Change-Id: Ie974202926e6880ccda26ac9fe967fb587a9b7a3
2010-08-10 14:10:20 -07:00
Patrick Dubroy 3ec8bdd576 Refactor zooming animation, and apply it to customize drawer too.
Change-Id: I0bbd5a68adc82cea02dc583ac3d04e3de8c0346e
2010-08-09 14:25:36 -07:00
Michael Jurka 4bb4f735c8 small fixes to Launcher
- more robust unshrink animation
- catching a resource not found exception when
  making widget preview
- added more missing copyright headers
- hiding customization drawer when long press on widget
- long-pressing on widget is temporarily always
  springloaded to zoom in to workspace screen

Change-Id: I6c92877357e907d89840fecc4662f0700b96255b
2010-08-06 11:19:47 -07:00
Jason Sams 070ada8f86 Update to RS api chance moving constant colors to ProgramFragment.
Change-Id: I28d436151f7a764939878676633b9acab85e919a
2010-08-05 09:59:38 -07:00
Patrick Dubroy 976ebec9e3 Fix incorrect offset in drag feedback, and other minor stuff.
- moved some dimens to -xlarge
- enlarge AllApps so that it's not clipped
2010-08-04 20:10:24 -07:00
Adam Cohen ec1b932159 Fixing longpress bug on widgets with a ListView
Change-Id: Idca7a8948ca21f1e7a1c332fd56303f903eb122d
2010-08-04 18:57:04 -07:00
Michael Jurka d4ede5325b improved comments in strings file
- also added/updated some copyright notices
2010-08-04 18:19:40 -07:00
Patrick Dubroy 7247f6315b Move all apps to the new animation framework, and some other all apps changes
Change-Id: Ib4c827966423d76e62db24036bbca0cd6ee46b95
2010-08-04 18:00:58 -07:00
Michael Jurka 8335a24a6b updated Launcher2 based on recent changes to view properties
- fixes bugs on both N1 and stingray where workspace
  was seemingly disappearing

Change-Id: Ica3c5aad7bbce58c35417a0022bfe0d1328c2322
2010-08-04 17:32:13 -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
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
Christian Mehlmauer 0fbe7bc14e Replaced /sdcard with Environment.getExternalStorageDirectory()
Change-Id: I50cc6c6ebf5db639d4fbee6a513193070de7823e
2010-08-02 20:27:46 +02: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 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