Hi,

these are actually pretty tough questions. Gallery is really lacking
some important functinality like event when the image actually stopped
moving. I had the same problem and I "faked" it using
Gallery.drawChild method where I am checking if the position of the
image is in the middle and if the the gallery is touched or not (by
setting simple boolean in onTouchevent). This works for me.

As for zooming - you can use either WebView or implement something
like this:

http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847?tag=content;siu-container

into this
http://blogs.sonyericsson.com/wp/2010/06/09/android-one-finger-zoom-tutorial-part-3/
(you can read also previous parts to help understand it)

BUT if you want to use gallery for sliding of fullscreen images (no an
ordinary carousel) I recommend reading this article
http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
I've used it and made it work like a charm :) I hope I would have time
to publish it someday.

And for "progressive" rendering of the image - I'm using small
thumbnail streched to the fullscreen (by maintaining original
resoultion ratio!) and then just loading full sized image into it.
It's not animated but animations are only causing more troubles and
are "wasting" users time.

I hope it would help you at least a bit.
Good luck.

On Sep 21, 11:16 am, Lidia <[email protected]> wrote:
> Hello, please need help.
>
> I can't find the source code for android gallery native application,
> but i am trying to implement its feature, when a thumbnail photo
> switches into a good quality photo, and zoom is available.
>
> In my app i have a Gallery instance that uses thumbnail photos for
> display. I want to know when scroll ends, or when the users stops on a
> photo, i want to change thumbnail photo slowly/ animated  into a good
> quality photo.
>
> gallery.setOnItemSelectedListener() is not a good solutions, as it
> shortens the speed of scroll.
>
> Thanks in advance
> Lidia

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to