• Home
  • History
  • Annotate
  • only in /frameworks/opt/photoviewer/src/com/android/ex/photo/views/
History log of /frameworks/opt/photoviewer/src/com/android/ex/photo/views/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0667dbcdae03086a7beedd47c68d098441f7fedc 17-Oct-2014 khoaha <khoaha93@gmail.com> Overzoom animation added when attempting to zoom past max scale.

For consistency, the user can scale a small amount beyond the maximum
scale and the image is zoomed out to the maximum scale upon release.

Also fixed bug where panning during a zoom out may result in bad centering.
Change-Id: Ic5edb22d87e8f761c8c87224ba0dcd34bb9084c4
hotoView.java
503256b6e02ec0ea5fb068e4948b20aa34fdeb8a 12-Sep-2014 khoaha <khoaha93@gmail.com> Fixed bugs related to flick trajectory and boundary collision.

1. Deceleration after flicking is now applied based on angle, instead of
equally to x and y components, preserving trajectory.

2. Image does not come to full stop when flicking into a boundary if it can
still travel in one component of the velocity.
Change-Id: I36cea8a0d2fc13e7bb20e43599f4a2ae064005d3
hotoView.java
e700c54e3b3638ba6d8713b4121131d289ff6d64 28-Aug-2014 khoaha <khoaha93@gmail.com> Double-tap when zoomed now zooms out to the default zoom.

Double-tapping to zoom in will pad the zoom origin if it would cause the
resulting image to not fill the view and be off-center.
Change-Id: Ie4e666db9b1aedd8bf840cb6de08e78d06e179da
hotoView.java
8749b62b1a7c7c8ac1d5db1dbe506e45961604b6 27-Aug-2014 Andrew Sapperstein <asapperstein@google.com> Replace == NaN with Float.isNaN. b/17107077

Change-Id: Ie5abe7120ce1e1d1892cf634f1da715061556792
hotoView.java
7887d9694aef23e4a0165b338726e6a9690a709a 07-Jan-2014 Andrew Sapperstein <asapperstein@google.com> Fix b/12348405. Return null drawable.

The initial implementation of getDrawable always
returned a drawable. However, the PhotoViewFragment
used the null state for various state decisions.

This made images that weren't on device in Gmail not
show up and no downloading progress was shown. Now this
happens. Hooray.

Change-Id: I55df738f55353d9c4b599c2e497ca8ed4768c059
hotoView.java
61be90be69b3489471a8f6927737e9c850ed8051 05-Nov-2013 Andrew Sapperstein <asapperstein@google.com> Fix b/11460582: Photos not rendering.

Noticed that in bindPhoto(Drawable),
we weren't always invalidating like we
are in bindPhoto(bitmap). We now are.

Change-Id: Icc90d4671cdc2a1a237917d873e736d254af9065
hotoView.java
8728a3dbb1bc7b31790d1de866ab149e0d1f77b4 15-Oct-2013 Matt Keoshkerian <mattak@google.com> Expose the underlying drawable data in a PhotoViewFragment

Needed fix for b/11223896

Change-Id: I4ae0a6fec7333086df88743780a85c56368ebb92
hotoView.java
4f49ea6da326194dffa0348a83d8110ac30d92e4 25-Sep-2013 Matt Keoshkerian <mattak@google.com> Update PhotoViewer to load photos as Drawable objects.

This change modifies PhotoBitmapLoaderInterface.BitmapResult to return a generic Drawable object based on either a passed in Drawable or a generated BitmapDrawable from a set Bitmap.

Change-Id: I31f7af6001539970c1adb9d45d8e3eb6a9f022a3
hotoView.java
69d49ba36ecf8b6288c196f2fe5e3795dfe1486e 18-Sep-2013 Mindy DelliCarpini <mindyp@google.com> Don't scale on double tap if there is movement before an up event


bring it back now that current.jar is updated

Change-Id: I92fc7998893535120ea4ad9e693b551b4a0229fb
hotoView.java
255eb43f74662cacee64d268c8c26bc62b5bf009 18-Sep-2013 Mindy DelliCarpini <mindyp@google.com> Revert "Don't scale on double tap if there is movement before an up event"

This reverts commit 7323508df106bf97cb6bd5d9aa480173558d84a3.

Change-Id: I00ac959a2a9f64d5f0c2e308315c09067042af9d
hotoView.java
7323508df106bf97cb6bd5d9aa480173558d84a3 10-Sep-2013 Mindy Pereira <mindyp@google.com> Don't scale on double tap if there is movement before an up event

Change-Id: I60fc2025def88ac9b7b55ba52c93569f7cfd8f45
hotoView.java
f0fac25e570ef98dd9d5df34cf8437888cd118cd 10-Sep-2013 Mindy Pereira <mindyp@google.com> Don't scale on double tap if there is movement before an up event

Change-Id: I60fc2025def88ac9b7b55ba52c93569f7cfd8f45
hotoView.java
3102e82e0187363d453f4bcde00e396ef5420a46 24-Oct-2012 Adam Copp <adamcopp@google.com> Remove unused imports and variables

Removes a couple of unused imports and an unused variable

Change-Id: Ie2b0109230a3393adde69a0744af5d0f262b5b8e
hotoView.java
413185316e9e6f0713185d9adc733b2768ab5aa1 21-Sep-2012 Paul Westbrook <pwestbro@google.com> am 29c041a3: am 88d18b9f: am 4054bd6d: Use gesture detector from support lib

* commit '29c041a3e41b93c7ffd8f29550df501f0b45ea02':
Use gesture detector from support lib
bdf13fd95aa92f794be827421945370c1456ea7c 21-Sep-2012 Paul Westbrook <pwestbro@google.com> Use gesture detector from support lib

Bug: 7206080
Change-Id: I9b5d332d095335f13b61c9c9ccd8152a462a9eb5
estureDetector.java
hotoView.java
da471e748028dd1d30fbb140432a897f4868f238 19-Sep-2012 Paul Westbrook <pwestbro@google.com> am dd2a57c4: am d9904217: am bd64181d: Integrate copy of GestureDetector into photoviewer

* commit 'dd2a57c446c05fe7cd8453bc249f38c03d2ab299':
Integrate copy of GestureDetector into photoviewer
190f6bd9a66ab01364451e22cb7992f86227a4c6 18-Sep-2012 Paul Westbrook <pwestbro@google.com> Integrate copy of GestureDetector into photoviewer

This allows the MR0/1 behavior to be used when Email/Gmail is
running on older versions of the platform

Change-Id: I1936d36ddb9f09a3b48d38c2ad44e70ac002fbda
estureDetector.java
hotoView.java
91dbfd25cc234de393ae22fc39a832a6335e1bc2 04-Sep-2012 Adam Copp <adamcopp@google.com> Add parameter for max initial scale factor

you can now pass EXTRA_MAX_INITIAL_SCALE into PhotoViewActivity in order
to specify the maximum initial scale of images displayed. This parameter
defaults to 1x if now supplied, so images will not be displayed larger
than their actual size by default.

This allows the gmail team to resolve 7049410 whilst velvet can keep
something like the old behaviour (which is more natural for their app)

Bug: 7049410
Change-Id: I7d230666ca50a4634d8436519ed280cc6e558ee3
hotoView.java
3a14814364ff1e48109d32a06bd063c66914889b 30-Aug-2012 Mark Wei <markwei@google.com> Attachment image viewer should not scale images larger than original size.

Bug: 7049410
Change-Id: I1ed2555203e1541f1481cae4f17f532eaa57c1cd
hotoView.java
9556f61c11991d6e955cfd68ca53f4f489dfa8c5 14-Aug-2012 Paul Westbrook <pwestbro@google.com> Fix some photo view problems

Make sure to stop the indeterminate progress bare when we can't
load an image

Bug: 6956516
Change-Id: Ifb69ca2e08a8ddfb351989d8e276e7fb6e3b06e5
rogressBarWrapper.java
150e623129eef49467f1d6f67649e4636a4513f2 03-Aug-2012 Andrew Sapperstein <asapperstein@google.com> Enabled optional support for showing progress.

Added some progress bars to the "empty" view
so that implementors of the API can show the
progress of things like downloads or loading.

Additionally, added a retry button and an optional
text that allows you to indicate status to the user.

Due to a bug in the framework, we actually use two
progress bars (one determinate and one indeterminate)
to update our status. Created a wrapper that allows
the controlling of both progress bars in sync.

Change-Id: I710e06317948d376d445abf1603545982ac8479d
rogressBarWrapper.java
6361dccee51bc01d75df08bc35b7893a98e7ed48 25-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Finalized the photo viewer transitions.

Changed the black background to be on the
FrameLayout behind the view pager rather than
on the the photo view. Also deleted some dead code.

Change-Id: I19759d3f7e93c32b6c6aceda0c296610f90f20f7
hotoView.java
928a39fb533255b34145285fabbd4f51961df63a 24-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Support showing previews in the photo viewer.

The photo viewer now supports the notion of a
preview of the full image. The preview is not
pinchable in any manner and displays a circular
progress bar over top of it while we are downloading
the full version of the image.

To enable this functionality, there is a new column
in the PhotoContract API called thumbnailUri. If it is
not set to null and if the attempted load of the contentUri
is unsuccessful, we will attempt to load a thumbnail version
that will show until the contentUri is finished loading.

Change-Id: I5547a5fc6a30ee6a30f137dc1dee76a77fb5b304
hotoView.java
8122882aaf14820bc2241605b2ab818ad358b9af 27-Jun-2012 Ying Wang <wangying@google.com> Import translations. DO NOT MERGE

Change-Id: Ib683da0aa64c2c63dfc672ea18b7417aded3ec5c
hotoView.java