History log of /packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2abaaf7caa9a83ba1ea759868aabde7f21387184 12-Dec-2012 John Reck <jreck@google.com> remove actionbar sherlock

Change-Id: Idb9b63f625fd4f0b78d947421ec5b098d8e5dfd5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
372152961edd8feada0ae6478c91ba6b2565191d 31-Oct-2012 John Reck <jreck@google.com> Gingerbread support-ish

This reverts commit 1336062985c9824d7fd796b1cebd5eaa8e4163ca.

Change-Id: I718ec56315dc207a3e612abb4576bddab9afa2ee
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
4831c7494373c360062a7becac820eba3bc39287 17-Oct-2012 Bobby Georgescu <georgescu@google.com> Big refactor, additions to state transition animations

Bug: 7362944
Refactored a lot of the state transitions code, adding
support for definable transition animations and defining
distinct outgoing and incoming animations.
Change-Id: I31a69057ea1b72dd3185cec656e59b11fdb528c1
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
5585826e68c62c3719fb346d40fd1999438c6c6b 15-Oct-2012 Bobby Georgescu <georgescu@google.com> Consistent animations & up button behavior in Gallery

Bug: 7302857
Bug: 7295464
This CL makes all of the transition animations throughout
the Gallery app consistent. The animation is the previous
view shrinking and fading out while the new view starts out
bigger than the view port and is coming in to the viewport
size as it fades in. Having consistent animations allows us
to not keep PhotoPage/AlbumPage instances around in certain
cases, making it possible to have consistent up button
behavior when switching between the grid and filmstrip.
Finally, this also makes the transitions in the camera app
filmstrip/grid switching consistent with those in the
gallery app.
Change-Id: I77bac6a0cde1e439738c78f9e16ab15ed5910cfb
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
a65914485de7b82b96b616c7be738ab952e09c83 05-Oct-2012 John Reck <jreck@google.com> Don't film strip animate when switching cameras

Bug: 7265781

Change-Id: Ibdef7d804923094f3b26471726a642a1b68e9540
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
b27df4650459068b409924493bbadaf25bb7e191 28-Sep-2012 Bobby Georgescu <georgescu@google.com> Debounce after quick fling towards camera but zoom if slow

Bug: 7250026
Bug: 7213802
Change-Id: I3c900813937161744a36015469c70112f2cf356b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
9b270f4f2e20fb0f0455529c2e20990173a75470 21-Sep-2012 Bobby Georgescu <georgescu@google.com> Snap a photo to the center after fling ends in filmstrip

Bug: 7050303
Change-Id: I7770d5642b376a1b888f34c5806f2291b64ecf68
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
28cb4161da5fc3756933ca67d509b8af1c6275f1 29-Aug-2012 Owen Lin <owenlin@google.com> Remove unused resources and fix some warnings.

Change-Id: I075977150c7da7650e723e29406f24ae2e23ea97
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
02ef48574ef7099ebaa0386bd6fd676bd2fd5489 25-Aug-2012 Bobby Georgescu <georgescu@google.com> Make transition from album page to photo page even smoother

Bug: 6979922
Bug: 7050303
Change-Id: Iaa2582125f0706a34317fa90fea73749cd2cf995
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
f4a707f9716874025b189d0e4ca4dfad0d7abbab 21-Aug-2012 Bobby Georgescu <georgescu@google.com> Improvements in animation from album page to photo page

Bug: 6631829
Bug: 6979922
Change-Id: I99fd330f3ec8bf363f8602a2f893167ca2a9c71b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
6772173d2a49b87a1d209f42fe52b5f830596f99 02-Jul-2012 Chih-Chung Chang <chihchung@google.com> Remove dependencies on APIs only exist on newer platforms.

Change-Id: I606a23863247454051dd183ddf6b77f6bc882685
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
8b930828c7a33d668876972c22a515e9163592f7 20-Jun-2012 Pin Ting <pinting@google.com> Use public OverScroller() instead of a hidden one..

Bug:6698374
Change-Id: I3a97d0b4bbfb5e2a1e9f4a656d39db636defcdbd
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
2ce59cbd4368eaf0f30cfea28891bd47155182cb 18-Jun-2012 Chih-Chung Chang <chihchung@google.com> Fix scaling gesture responsiveness.

Bug: 6632011
Change-Id: I9cfeafa4365354a631565f8ee4a9b53df76d06e9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
6b891c6a3739f8c49d42f9db6fc76cb92c7c5f25 07-Jun-2012 Chih-Chung Chang <chihchung@google.com> Add swipe-to-delete gesture.

Change-Id: I992e59702f9dfff17da2f4464e48c9228d42b1b3
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
192b7f1ddf08e7bfa0c65dbf61edb81ebb5a0998 31-May-2012 Chih-Chung Chang <chihchung@google.com> Improve scale gesture snapback.

If the picture is zoomed-in, we want to keep the focus point stay in
the same position on screen, so we need to adjust the target mCurrentX
value.

Bug: 6563619
Change-Id: I87b23da99aced1490187e550bd43fad733122577
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
f3f90752ca92372d61ca0ec22a9846261cfbcbde 31-May-2012 Chih-Chung Chang <chihchung@google.com> If the focused box was at minimal scale, we try to make it the
minimal scale under the new view size.

Bug: 6584425
Change-Id: I7dcc748cb3659a06f2ca4d8550d075fdda2949fa
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
42e1fed4edd9ed1e326aab2f7969242c56812952 31-May-2012 Chih-Chung Chang <chihchung@google.com> Move to final position after view size change.

Bug: 6584188
Change-Id: If6ab23532bd7040701e358f9cdd813d2f6a71e5c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
9f44f35c211229bc0c5ca17823f5d7b6bb3583a1 30-May-2012 Chih-Chung Chang <chihchung@google.com> Improve image size change handling.

- When the camera relative frame is set, we delay the change for camera
rectange until the next setImageSize call. This avoids the unwanted
intermediate state if we change them separately.

- Don't draw other screennails when the camera is in full screen. This
avoids showing other screennails when the image size changes.

- When the aspect ratio of the image changes, we assume the view angle
of the longer side doesn't change (so the aspect ratio change is because
the view angle of the shorter side changes). This matches what camera
preview does.

Bug: 6566612

Change-Id: I7603416f31c96ba77c96cdc2a3d0b79f8921c491
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
95c2aeab0bf398b45d8a9c562fd110d1e3756139 25-May-2012 Angus Kong <shkong@google.com> Force to stop scrolling in filmstrip mode.

bug:6554106
Change-Id: I4305ce7068a36e72a325996a88c1d227a2d2b20c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
e6251df06f0b3c8f556043f8b725b4b19be7474d 22-May-2012 Chih-Chung Chang <chihchung@google.com> Unlock orientation only when action bar is needed.

Bug: 6482079
Change-Id: I75d96ca7957f80e9c52f35edf74127f82f194f63
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
c4791b7721a8417be5be33a67c8ade6e82b03a2c 19-May-2012 Chih-Chung Chang <chihchung@google.com> Fix capture animation if we are far away from the camera preview.

Bug: 6481823
Change-Id: If2511c8dd08e0483cdc3139068ee190e2b08126d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
f5ce6aeba448f418c99736465f7a02dacd7715bb 11-May-2012 Chih-Chung Chang <chihchung@google.com> Show gray tile for screennails not loaded yet.

Bug: 6452217
Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
5338d1959406e95a580858e418794e23e05c47e2 17-May-2012 Yuli Huang <yuli@google.com> Smooth opening animation by modifying interpolation curve.

bug:5367032
Change-Id: I15ad839ede723591f081be200c1c16a8a9a901d0
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
f320b8429dd5c68c117b8e9b1a36a435f4f4ff13 15-May-2012 Yuli Huang <yuli@google.com> Fix card effect shown in opening animation.

bug:6495753
Change-Id: I7a640c2dddef0b7c58e0b7d5a00cbc4aab6ec43d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
bd7c016d728853d38f98a3c6077b7bd9b08858b9 15-May-2012 Yuli Huang <yuli@google.com> Avoid black screen when PhotoPage just starts.

bug:5367032

Change-Id: I6bd56026ec32bcee972d69855966750b9a57cdf4
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
ba12eae90b5b1a80ee002aa0df8c5c5189c4faa3 06-May-2012 Chih-Chung Chang <chihchung@google.com> Add transition for card deck effect.

Bug 6442785: Controls disappear & preview surface gets warped after deleting just taken video
Bug 6399861: Filmstrip: Pinch-out animation in fullscreen photo > filmstrip should be metaphorically consistent with the stack of cards model
Bug 6429677: Gray shadow shows up when start

Change-Id: I408cf250e67b4def20f5f15621fe57d7845c90f9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
17ffedda6e3ed57b38afbb775594cf30d83fc652 03-May-2012 Chih-Chung Chang <chihchung@google.com> Fix 6399813: tapping on a photo that isn't in the middle of the screen doesn't select it.

Also make tapping while flinging stop the scroll instead of opening the item.

Change-Id: Iefef4738d7d74b29e4594ea3ae2cb1c91e0e17ab
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
b56ff734d0117cd5813cd2328edc57c4630ff1c3 30-Apr-2012 Chih-Chung Chang <chihchung@google.com> Fix black screen when viewing Gmail image file attachment.
Bug: 6415848

Change-Id: Iec369866be6b5546fbd8cb77eb95a29f92e00b84
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
bd141b5a51c96f6fcaddfa547f0928ce69cf0755 26-Apr-2012 Chih-Chung Chang <chihchung@google.com> Support drawing in different orientation in Gallery.

Bug 6312994: Swipe UX: do not directly show the camera roll when camera starts
Bug 6313191: Swipe UX: Change swipe direction after the user rotated the device
Bug 6313192: Swiping UX: make Gallery display in rotated mode
Bug 6399447: Filmstrip: in Gallery, pressing Back from filmstrip doesn't perform the right animation
Bug 6399974: Filmstrip: when swiping from full-screen photo to filmstrip mode, camera view and the photo-roll don't align correctly
Bug 6400014: Swiping UX: in Camera portrait mode, tapping on the Thumbnail doesn't align camera view and the photo-roll correctly
Bug 6401075: Able to scroll through the gallery pics while capturing video.
Bug 6405087: Filmstrip does not change with orientation

Change-Id: I8c479d87800c63b7a95c199c0c1c3bc512d66d42
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
2c6173822a612597c79be41b126367ddfbb5d518 20-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add capture animation in Gallery.

Change-Id: Ibf95cc64f37a4518377e64124af6606c4f14cdaa
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
c3b2d478f9032a8decf5c6254a238fc49e41b72c 19-Apr-2012 Chih-Chung Chang <chihchung@google.com> In filmstrip, show placeholders for pictures not loaded yet.

Change-Id: I037f1f054da4a3800045d5b89724341ac22272a5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
fb1a15559bb2a0a1c8a41efd3e0420a2a2d70590 19-Apr-2012 Chih-Chung Chang <chihchung@google.com> Allow filmstrip to scroll before the screennail is loaded.

Change-Id: I9aa7405902c4bfb7e4946cfe4e1263314a958686
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
b8be1e0ad76b6abc0da7ead39f7a9811195d001e 17-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add thumb pool the cache Bitmap used for thumbnails.

Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
d848862c1dd0689df8df5d684476cfd3897557d6 16-Apr-2012 Chih-Chung Chang <chihchung@google.com> Slower scrolling for fling in filmstrip mode.

Also don't animate scale for the first image size.

Change-Id: I6a71c00e813bd203e9f454bc9a776eadec06fd78
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
642561dd3177f9511c8bbeb90839066ecc451054 16-Apr-2012 Chih-Chung Chang <chihchung@google.com> Define max height/width for each picture in filmstrip mode.

Change-Id: I844a32f95237724a60a64afe5f746798886dcc2c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
aced34ca03fbd76b072dcdce26f4883ac4d1b25c 16-Apr-2012 Chih-Chung Chang <chihchung@google.com> Reduce padding between photos, from 96 pixels to 16 dp.

Change-Id: I62b0013da45b7d7495b34e9e4e1e791bac9c9c1f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
b7ec5534c7b539be2397c27cfa5e8b992974c12d 02-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add new filmstrip mode for PhotoView.

Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
534b12fd804610dd67b8109bc08ba76f31afb33e 21-Mar-2012 Chih-Chung Chang <chihchung@google.com> Patch 2 for master.

Change-Id: I8b7c9fd326c4f247a1f2129b1d64388a223d79e0
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
04ac045bf8da5082bbb0bdc9ea5f9c9b5b796ad0 20-Mar-2012 Yuli Huang <yuli@google.com> Fix incorrect initial position/scale of opening animations.

1. Initial position of opening animation isn't correctly offset if the
position repository isn't properly offset by the action bar height.
2. Initial scale of opening animation should match the thumbnail instead
of using a fixed value 240.
This CL is part of efforts to fix b:6016973.

Change-Id: I620705357ba7594d43685e47488928f9fc93d9f6
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
2b3ee0ea07246b859a5b75d8a6102a7cce7ec838 14-Mar-2012 Owen Lin <owenlin@google.com> Reorganize import for all files.

Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
8817fe8a5bbe65905e777230720293744f6a8cca 08-Mar-2012 Yuli Huang <yuli@google.com> Fix b/5948180: Photo is repositioned during being scaled.

Avoid repositioning photo to center vertically during scaling it.

Change-Id: Id9f2de6b2b1611419a0c03888cff49a5336b39df
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
cb05834cedb8223fc59456afcd62fa7448f2b3b8 02-Mar-2012 Chih-Chung Chang <chihchung@google.com> Use AnimationTime for animation caluclation.

Change-Id: I3af8334978c054ddbc2050a240f0d9c113a44012
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
6068de20f4f19ca82ca01bef3b6dda796a79f724 01-Mar-2012 Yuli Huang <yuli@google.com> Fix b/6064909: Photo might not be snapped back correctly.

Photo might not be snapped back if the animation wasn't actually started
because of no position/scale changes.

Change-Id: I6b5e938bffd954b848cae04514a06d0427151025
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
2ce3c3bfe08fff5aee58007cc8ba8f4a50861ae2 23-Feb-2012 Yuli Huang <yuli@google.com> Fix b/5624131: Panning enlarged photo switches images by mistake.

Avoid swiping images when panning to view vertically enlarged photo.

Change-Id: Ieb72cb8f38595fbedc927e8a0380fe31532ee434
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
fd91413ab46e2960803a33652025aebe3e05f2d9 11-Feb-2012 Chih-Chung Chang <chihchung@google.com> Use FloatMath instead of Math.

Change-Id: I41661b231f6c034dbca6af26d5950eda6c5fc7da
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
3e7cfd9d20f9e9830dddac7288d4d12c8839fba0 11-Feb-2012 Chih-Chung Chang <chihchung@google.com> Revert "Use FloatMath instead of Math."

This reverts commit 6bb8b2eb8695c042798f0eb798032cd30d642a65
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
6bb8b2eb8695c042798f0eb798032cd30d642a65 11-Feb-2012 Chih-Chung Chang <chihchung@google.com> Use FloatMath instead of Math.

Change-Id: I26eb6a554f72c13ba2801ce35ef0cf2a1466a97b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
8f568da373699781beb11cfa46a46c5871288353 04-Jan-2012 Chih-Chung Chang <chihchung@google.com> Patch.

Change-Id: I62fd65461e8989a1d5cf6bc353dfc4b61a2108c8
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
532d93caddc91a7aa33ca113adbc0b8255d498eb 12-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5254974: Add EdgeEffect for PhotoView.

Change-Id: Ib9ea8fff14a932e8ec25c3f272fe0539776bb062
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
b3aab90bb37aa9cc60be32e05678ee55d6575ee8 03-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5319007: Add fling to PhotoView.

Change-Id: Iacda65fbe1fcb3ad245ad99e0b062606ca6792b9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
676170e619ad59ea97d04e0edcd62b1500304845 30-Sep-2011 Chih-Chung Chang <chihchung@google.com> Simplify some calculation and add more comments.

Change-Id: I0fcb2e48ba88dc957c5454de09059a265c3dbec1
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java
ec4125492f17130f65e49160a17bd437e01128a7 26-Sep-2011 Chih-Chung Chang <chihchung@google.com> Move out PositionController from PhotoView.

Change-Id: Id1088ffbd67ff5e986fdf16f70ba24f1537d10ab
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PositionController.java