Commit Graph

51 Commits

Author SHA1 Message Date
Winson Chung 29d6fea296 Adding outlines to side pages for widgets and wallpaper pages in the customization tray.
Change-Id: Ib2ec5e630c1c861003d0e0b5672ed69ef25c0b47
2010-12-01 18:58:17 -08:00
Adam Cohen 73aa9755d3 Fix workspace outline alpha during scrolling
Change-Id: Ib4e20994b2256dad6607df9c4616f06c5a0b336e
2010-11-24 16:26:58 -08:00
Adam Cohen e0f66b5469 Modifying feel of scrolling / overscroll
-Modified overscroll on Workspace
-Added overscroll effectiveness curve to PagedView
-Modified the feel of scrolling in Workspace, AllApps,
 and Configure. Made it more sensitive to velocity.

Change-Id: I7f705e267a536c742fbb3b6556648bbf993bdd2f
2010-11-24 15:47:13 -08:00
Adam Cohen faa2830513 Fix issue 3214208
-Doing an index check to avoid NPE

Change-Id: I53e4f4377f0e725e57ed9d0835b6f69af4f83a64
2010-11-19 13:08:37 -08:00
Adam Cohen 68d739365b Adding overscroll to Workspace, AllApps and Customize
-Also modified the background alpha interpolation during scrolling

Change-Id: I68db8fbe80f720c507ab3208d8b3dcd8aa4f2081
2010-11-18 16:32:19 -08:00
Adam Lesinski 6b879f0a58 Layout tweaks in Launcher
-Removed All apps and Configure toolbar buttons
from Customization Drawer, removed Configure
button from All apps and added Market icon
to All apps
-Changed spacing of CellLayouts when scrolling
-Modified gap spacing in workspace layout
-Made workspace invisible in All apps but touching
the place where the workspace was takes you back
to workspace

Change-Id: I6e2579bfebeb8f1f80fdae07da442f6d399abe33
2010-11-17 10:57:43 -08:00
Michael Jurka 7426c42ce0 Allow dragging items off customization tray
Long press is no longer required

Change-Id: Ie122e298ab8782522b650551b8004c53b514bdd1
2010-11-16 14:24:56 -08:00
Winson Chung e22a8e9d3e Minor fixes to Launcher
- Adding checks to prevent multiple onSetAlpha's to be called (especially now that we are using display lists)
- Removing an old change to keep artificially make the last page wider
- Fixing issue where you could click on an item in the paged view while the page it was on is being faded out

Change-Id: I9b194565602b5200c0688da2caec9c3c829b3bb0
2010-11-15 13:44:42 -08:00
Winson Chung bbc60d8e79 Fixing various small bugs with launcher
- Items added from customization tray add from top left now
- Fixing issue where wallpaper tab was not showing
- Workaround for the extra pixel line showing in homescreen drag icons
- Speeding up animations for tab transitions and clicking

Change-Id: I865531bb4cf896320a9e2ff6cef08bed221a2294
2010-11-11 17:20:48 -08:00
Winson Chung 45e1d6ec0a Modifying wallpapers customization page to look like widgets.
- Disallowing touch handling when there are no children

Change-Id: I925d6f1f862f8c7994a80c4eaacc80f8d59f6ab2
2010-11-10 11:46:26 -08:00
Patrick Dubroy 72e0d34fc5 Fix 3165989: Items dragged from All Apps don't appear 2010-11-09 15:23:44 -08:00
Winson Chung 7da1025bd7 Layout and spacing changes for AllApps/Customization drawer
- Also fixing issue where preview images in the customization drawer were not being scaled down

Change-Id: I83d1abf019d591954204b87a437eac2ff916dd54
2010-11-01 16:10:49 -07:00
Winson Chung 10fefb18c4 Fixing issues in Launcher
- Now ending choice mode if a selected application is removed
- Only updating apps in the customization drawer if the applications change
- Adding null check when determining scrolling in PagedView

Change-Id: I0b23d1383649626dc012bd70a5e8087885b77c17
2010-11-01 12:10:25 -07:00
Winson Chung 9cfd25f167 Adding distance threshold to initiate paging regardless of velocity.
Change-Id: I275417ca69bcaa0b643dab7f3f552d973a194ce6
2010-10-25 10:47:40 -07:00
Winson Chung df4b83dd9d More spacing changes for AllApps.
- Also testing a simple scale of existing icons in lieu of high res icons.

Change-Id: Ib9758064536cd1b1704344ea885bccdc93dd3466
2010-10-20 18:39:54 -07:00
Michael Jurka fd177c1d10 Fix bug where screen would get stuck while panning
Bug: 3109113
2010-10-19 15:50:43 -07:00
Michael Jurka 1adf5391a3 Fixing a bug where you could scroll the mini screens
Change-Id: I3638618cb5f4ec2705955fda994fd6aff42fd70f
2010-10-18 18:16:46 -07:00
Adam Cohen e45440ef0e Fixing a bug with anti-aliasing during page scrolling
Change-Id: If03e8ce5880d44ed33378e53f59e0c5d39fceb61
2010-10-14 18:33:38 -07:00
Adam Cohen 564976a46e Fixing bug with swiping
Change-Id: I2957aedded514d4dd2f9a9d766eede5d0801622c
2010-10-13 19:54:27 -07:00
Winson Chung b0b2e6f588 Tweaking spacing and layout of AllApps/Customize in portrait.
- Also added workaround for tab label not being initially selected
- Added fix for initial layout of PagedViews preventing side pages from having proper alpha
- Marking widget dims format string as not translatable

Change-Id: I74a5410b88e2766816a87b14e64058b4288c214d
2010-10-12 18:27:22 -07:00
Michael Jurka b8f0672d7c Snap workspace back to screen on ACTION_CANCEL.
Bug: 3066123
2010-10-10 16:01:05 -07:00
Adam Cohen 21f12b52a5 -Changing page scroll click regions
-Cleaning up code for page rotations

Change-Id: I046784b108186b6627ce0df3aed57d70c303ef23
2010-10-07 18:20:49 -07:00
Michael Jurka c0e8fcae49 Fixing state transition bugs
- explicitly keeping track of state in Workspace
- cancelling animations before starting new ones
- adding additional state variable for workspace for in-progress transitions
- updating Scroller object if we jump to a certain location

Change-Id: I5ddf51bae543ec89b2a44ab651d7269eb4859a6d
2010-10-06 17:54:12 -07:00
Patrick Dubroy 1262e36948 wip 3029324: Implement new drag feedback
- Show page borders when dragging
- Enlarge scroll region (landscape only)
- When inside scroll region, show green border on adjacent page
2010-10-06 17:39:05 -07:00
Adam Cohen 9c4949e12c ->Added attribute to PagedView to specify spacing between
adjacent pages
->Fixing crash on phones
Change-Id: I8ea97ce6d569c59b6d51b544dc10b0310d294b43
2010-10-05 14:08:00 -07:00
Adam Cohen f34bab59fc -Added 3D effect to home screen scrolling
-Added background outline fade in / out
-Modified the feel of scrolling: now using quintic
 interpolator and modified the influence of
 scroll velocity

Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781

Conflicts:

	src/com/android/launcher2/CellLayout.java
2010-09-30 14:15:10 -07:00
Adam Cohen 0fb7db5a37 Fixing boot stall.
Revert "-Added 3D effect to home screen scrolling"

This reverts commit 9415d87eda.

Change-Id: Ib8d6602f5d82884eb1f6cc44c0cc71cc563a3a59
2010-09-29 13:04:32 -07:00
Adam Cohen 9415d87eda -Added 3D effect to home screen scrolling
-Added background outline fade in / out
-Modified the feel of scrolling: now using quintic
 interpolator and modified the influence of
 scroll velocity

Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781
2010-09-28 16:56:10 -07:00
Michael Jurka e17e19c0bd Making "tap to add" in customization mode automatically
add to the current screen
2010-09-28 11:01:39 -07:00
Winson Chung d0d43010c7 Adding tap-to-add behaviour to the customization drawer.
Change-Id: I5a0863a8df2a0b4855112eb29b40b6e7dd550db9
2010-09-27 09:34:15 -07:00
Michael Jurka 28750fba6a fixed minor code review issues from change I0280c3be
(it was submitted early accidentally)

Change-Id: I3753366b4d5e1dc228baf02eba27a2c0d8fa42cf
2010-09-24 18:34:23 -07:00
Michael Jurka 0280c3be4d Adding support for drag and drop of folders and shortcuts.
also:
- Long press on empty space on workspace now brings up customization tray
- Fixed: while dragging, items appeared to be dropping on folders two cells to the right
- Fixed: Disabling drops on folders when the workspace is shrunken
- Fixed: account for scaling of dragged items when checking if they overlap
          with shrunken workspace screens
- Making folder icons dimmable to match shortcuts and widgets
- When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most
- Refactored drag/add mechanism, removing array of occupied cells from CellInfo
- Removed dead code/variables
2010-09-24 15:28:20 -07:00
Winson Chung e8878e3c5a Adding some wallpaper buttons on the customization tray.
Also tweaking the fading algorithm for side pages.

Change-Id: Ia7743c2b71741926ff9ae52e6965d7aefc86604e
2010-09-15 20:51:01 -07:00
Adam Cohen d19d3ca3ec Fixing bug with Launcher page scrolling
Change-Id: Ib9a5a77ffe40dfcde0f846558e5ef0441cb11f7f
2010-09-15 15:02:55 -07:00
Winson Chung e3193b93ad Initital changes for new customization drawer/widget tab design.
Change-Id: I160c8777fe2657ab303acfa20934f2e90f9e953e
2010-09-15 14:45:11 -07:00
Michael Jurka 1ff706b8c0 fix two crashes
* fix crash where Workspace gets an ACTION_MOVE
but didn't get the ACTION_DOWN before it
* fix crash in DimmableBubbleTextView on
non-xlarge devices (buganizer bug#3001211)

Change-Id: I419b4a9fd3c95df9949f1d46746845ad2dc4b831
2010-09-14 17:56:01 -07:00
Michael Jurka cfc629446c Fix bug with home screen position when switching
from portrait to landscape and v.v.
2010-09-14 14:01:17 -07:00
Michael Jurka 5f1c509d5a supporting swipable home screens on xlarge devices
- icons and widgets on home screens can be "dimmed"
- celllayout no longer renders a dimmed version of itself, but instead its children make dimmed versions of themselves
- celllayout no longer always takes up full size of workspace, in landscape mode 
neighboring screens (celllayouts) are visible
- on xlarge devices, in landscape mode side screens are "dimmed"
- moved holographic outline helper to its own file
- fixed bug where mini-screens were still able to scroll left/right

Change-Id: I9e85ab4147edfae1e7525c3d11d42be3fabf4f6d
2010-09-13 15:16:10 -07:00
Patrick Dubroy 430c53bc80 Fix 2981705: Unable to uninstall downloaded app by dragging to trash.
- on long press, copy constructor of ApplicationInfo is called. It wasn't copying flags.
- also fix all apps choice mode so that chosen object is set when preparing CAB
2010-09-08 16:05:51 -07:00
Patrick Dubroy 2b9ff37edb When an app is chosen in All Apps, tapping a workspace screen adds it to that screen. 2010-09-08 10:38:54 -07:00
Patrick Dubroy 9f7aec8d43 Implement selection mode for All Apps with delete and info actions. 2010-09-06 17:37:35 -07:00
Michael Jurka c4fb9173e7 Fix crash when clicking "Games" or "Downloaded"
tabs in All Apps.

Change-Id: I832376368a07d65543d142790c8876e16c65067a
2010-09-02 17:25:33 -07:00
Winson Chung 5f2aa4efee Adding single/multi selection mode to AllAppsPagedView (action bar disabled).
Also adding check to prevent scrolling mode from continuing on touch down.

Change-Id: I744f2c1f6bc659219145b52b15a7ea176853ec7c
2010-09-02 11:35:48 -07:00
Michael Jurka 0142d49e13 Changed Workspace to inherit from PagedView
- adds support for seeing dimmed side-pages on
home
- adds workspace support for pages that are
smaller than workspace itself
- removing a lot of code duplicated between
PagedView and Workspace
- tested new Workspace on Nexus One, and perf.
was indistinguishable from old Workspace in my
tests

Change-Id: Ie33ab4e8b35ac01b22894cff66650bb0ece8dfcc
2010-09-01 14:54:34 -07:00
Winson Chung 241c3b451d Adding outline cache for PagedViewIcons.
Change-Id: I258740a0323660edd73b5f40d61d509455ae195b
2010-08-25 17:38:41 -07:00
Winson Chung 86f7753bbd Preventing reloading of pages on swipe and disabling offsets for xlarge static wallpapers.
Change-Id: I4ca72164775d09706e36c38e0fac0e84254221c7
2010-08-24 14:58:11 -07:00
Winson Chung affd7b4d23 Fixing alpha issue on AllApps.
Change-Id: Ifbd81b3e8009cff963bb03bd953e498f8677cc38
2010-08-20 15:17:26 -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
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
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