summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/PositionController.java
Commit message (Collapse)AuthorAgeFilesLines
* remove actionbar sherlockJohn Reck2012-12-121-6/+2
| | | | Change-Id: Idb9b63f625fd4f0b78d947421ec5b098d8e5dfd5
* Gingerbread support-ishJohn Reck2012-10-311-2/+6
| | | | | | This reverts commit 1336062985c9824d7fd796b1cebd5eaa8e4163ca. Change-Id: I718ec56315dc207a3e612abb4576bddab9afa2ee
* Big refactor, additions to state transition animationsBobby Georgescu2012-10-171-1/+1
| | | | | | | | 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
* Consistent animations & up button behavior in GalleryBobby Georgescu2012-10-161-1/+1
| | | | | | | | | | | | | | | | | 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
* Don't film strip animate when switching camerasJohn Reck2012-10-051-4/+4
| | | | | | Bug: 7265781 Change-Id: Ibdef7d804923094f3b26471726a642a1b68e9540
* Debounce after quick fling towards camera but zoom if slowBobby Georgescu2012-09-281-6/+6
| | | | | | Bug: 7250026 Bug: 7213802 Change-Id: I3c900813937161744a36015469c70112f2cf356b
* Snap a photo to the center after fling ends in filmstripBobby Georgescu2012-09-211-3/+1
| | | | | Bug: 7050303 Change-Id: I7770d5642b376a1b888f34c5806f2291b64ecf68
* Remove unused resources and fix some warnings.Owen Lin2012-08-301-1/+3
| | | | Change-Id: I075977150c7da7650e723e29406f24ae2e23ea97
* Make transition from album page to photo page even smootherBobby Georgescu2012-08-261-3/+1
| | | | | | Bug: 6979922 Bug: 7050303 Change-Id: Iaa2582125f0706a34317fa90fea73749cd2cf995
* Improvements in animation from album page to photo pageBobby Georgescu2012-08-211-1/+2
| | | | | | Bug: 6631829 Bug: 6979922 Change-Id: I99fd330f3ec8bf363f8602a2f893167ca2a9c71b
* Remove dependencies on APIs only exist on newer platforms.Chih-Chung Chang2012-07-031-1/+1
| | | | Change-Id: I606a23863247454051dd183ddf6b77f6bc882685
* Use public OverScroller() instead of a hidden one..Pin Ting2012-06-231-8/+8
| | | | | Bug:6698374 Change-Id: I3a97d0b4bbfb5e2a1e9f4a656d39db636defcdbd
* Fix scaling gesture responsiveness.Chih-Chung Chang2012-06-181-1/+1
| | | | | Bug: 6632011 Change-Id: I9cfeafa4365354a631565f8ee4a9b53df76d06e9
* Add swipe-to-delete gesture.Chih-Chung Chang2012-06-181-84/+229
| | | | Change-Id: I992e59702f9dfff17da2f4464e48c9228d42b1b3
* Improve scale gesture snapback.Chih-Chung Chang2012-05-311-23/+48
| | | | | | | | | 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
* If the focused box was at minimal scale, we try to make it theChih-Chung Chang2012-05-301-0/+9
| | | | | | | minimal scale under the new view size. Bug: 6584425 Change-Id: I7dcc748cb3659a06f2ca4d8550d075fdda2949fa
* Move to final position after view size change.Chih-Chung Chang2012-05-301-2/+7
| | | | | Bug: 6584188 Change-Id: If6ab23532bd7040701e358f9cdd813d2f6a71e5c
* Improve image size change handling.Chih-Chung Chang2012-05-291-16/+29
| | | | | | | | | | | | | | | | | | - 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
* Force to stop scrolling in filmstrip mode.Angus Kong2012-05-241-0/+1
| | | | | bug:6554106 Change-Id: I4305ce7068a36e72a325996a88c1d227a2d2b20c
* Unlock orientation only when action bar is needed.Chih-Chung Chang2012-05-221-5/+12
| | | | | Bug: 6482079 Change-Id: I75d96ca7957f80e9c52f35edf74127f82f194f63
* Fix capture animation if we are far away from the camera preview.Chih-Chung Chang2012-05-211-2/+22
| | | | | Bug: 6481823 Change-Id: If2511c8dd08e0483cdc3139068ee190e2b08126d
* Show gray tile for screennails not loaded yet.Chih-Chung Chang2012-05-171-1/+3
| | | | | Bug: 6452217 Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a
* Smooth opening animation by modifying interpolation curve.Yuli Huang2012-05-171-2/+4
| | | | | bug:5367032 Change-Id: I15ad839ede723591f081be200c1c16a8a9a901d0
* Fix card effect shown in opening animation.Yuli Huang2012-05-161-0/+16
| | | | | bug:6495753 Change-Id: I7a640c2dddef0b7c58e0b7d5a00cbc4aab6ec43d
* Avoid black screen when PhotoPage just starts.Yuli Huang2012-05-161-1/+1
| | | | | | bug:5367032 Change-Id: I6bd56026ec32bcee972d69855966750b9a57cdf4
* Add transition for card deck effect.Chih-Chung Chang2012-05-071-3/+52
| | | | | | | | 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
* Fix 6399813: tapping on a photo that isn't in the middle of the screen ↵Chih-Chung Chang2012-05-041-0/+10
| | | | | | | | doesn't select it. Also make tapping while flinging stop the scroll instead of opening the item. Change-Id: Iefef4738d7d74b29e4594ea3ae2cb1c91e0e17ab
* Fix black screen when viewing Gmail image file attachment.Chih-Chung Chang2012-05-011-1/+2
| | | | | | Bug: 6415848 Change-Id: Iec369866be6b5546fbd8cb77eb95a29f92e00b84
* Support drawing in different orientation in Gallery.Chih-Chung Chang2012-04-301-100/+185
| | | | | | | | | | | | | 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
* Add capture animation in Gallery.Chih-Chung Chang2012-04-241-26/+68
| | | | Change-Id: Ibf95cc64f37a4518377e64124af6606c4f14cdaa
* In filmstrip, show placeholders for pictures not loaded yet.Chih-Chung Chang2012-04-191-3/+6
| | | | Change-Id: I037f1f054da4a3800045d5b89724341ac22272a5
* Allow filmstrip to scroll before the screennail is loaded.Chih-Chung Chang2012-04-191-36/+23
| | | | Change-Id: I9aa7405902c4bfb7e4946cfe4e1263314a958686
* Add thumb pool the cache Bitmap used for thumbnails.Chih-Chung Chang2012-04-181-2/+1
| | | | Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4
* Slower scrolling for fling in filmstrip mode.Chih-Chung Chang2012-04-171-8/+18
| | | | | | Also don't animate scale for the first image size. Change-Id: I6a71c00e813bd203e9f454bc9a776eadec06fd78
* Define max height/width for each picture in filmstrip mode.Chih-Chung Chang2012-04-161-6/+20
| | | | Change-Id: I844a32f95237724a60a64afe5f746798886dcc2c
* Reduce padding between photos, from 96 pixels to 16 dp.Chih-Chung Chang2012-04-161-1/+1
| | | | Change-Id: I62b0013da45b7d7495b34e9e4e1e791bac9c9c1f
* Add new filmstrip mode for PhotoView.Chih-Chung Chang2012-04-101-485/+1137
| | | | Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
* Patch 2 for master.Chih-Chung Chang2012-03-261-4/+23
| | | | Change-Id: I8b7c9fd326c4f247a1f2129b1d64388a223d79e0
* Fix incorrect initial position/scale of opening animations.Yuli Huang2012-03-211-9/+16
| | | | | | | | | | 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
* Reorganize import for all files.Owen Lin2012-03-141-5/+4
| | | | Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
* Fix b/5948180: Photo is repositioned during being scaled.Yuli Huang2012-03-081-1/+1
| | | | | | Avoid repositioning photo to center vertically during scaling it. Change-Id: Id9f2de6b2b1611419a0c03888cff49a5336b39df
* Use AnimationTime for animation caluclation.Chih-Chung Chang2012-03-051-2/+2
| | | | Change-Id: I3af8334978c054ddbc2050a240f0d9c113a44012
* Fix b/6064909: Photo might not be snapped back correctly.Yuli Huang2012-03-011-15/+21
| | | | | | | Photo might not be snapped back if the animation wasn't actually started because of no position/scale changes. Change-Id: I6b5e938bffd954b848cae04514a06d0427151025
* Fix b/5624131: Panning enlarged photo switches images by mistake.Yuli Huang2012-02-291-24/+48
| | | | | | Avoid swiping images when panning to view vertically enlarged photo. Change-Id: Ieb72cb8f38595fbedc927e8a0380fe31532ee434
* Use FloatMath instead of Math.Chih-Chung Chang2012-02-111-5/+6
| | | | Change-Id: I41661b231f6c034dbca6af26d5950eda6c5fc7da
* Revert "Use FloatMath instead of Math."Chih-Chung Chang2012-02-101-5/+5
| | | This reverts commit 6bb8b2eb8695c042798f0eb798032cd30d642a65
* Use FloatMath instead of Math.Chih-Chung Chang2012-02-111-5/+5
| | | | Change-Id: I26eb6a554f72c13ba2801ce35ef0cf2a1466a97b
* Patch.Chih-Chung Chang2012-01-121-2/+11
| | | | Change-Id: I62fd65461e8989a1d5cf6bc353dfc4b61a2108c8
* Fix 5254974: Add EdgeEffect for PhotoView.Chih-Chung Chang2011-10-131-6/+67
| | | | Change-Id: Ib9ea8fff14a932e8ec25c3f272fe0539776bb062
* Fix 5319007: Add fling to PhotoView.Chih-Chung Chang2011-10-051-104/+142
| | | | Change-Id: Iacda65fbe1fcb3ad245ad99e0b062606ca6792b9