Gallery & end animation events


Last Updated:

  1. Arreis

    Arreis New Member This Topic's Starter

    Joined:
    Nov 18, 2010
    Messages:
    1
    Likes Received:
    0
    First things first, hi to everyone. I'm new to this forum (and to android development), but I intend to get quite far in this world. Hopefully, I'll be able to count on all you other android lovers to do that ;)

    Well, let's cut to the chase. I'm building a small app, simple gallery with a bunch of images, just for practice. Thing is, there are a few things I'd like to accomplish, and to do that I need to make a certain call just as soon as the animation ends. In case there is some confusion, I'll explain: when you slide left or right on a gallery, the image follows your finger, and when you let go the image slowly centers itself, until it stops. THAT is the moment when I need to do some things. Is there any event I can catch that triggers at that moment? If so, any clues on how to catch it?

    Just in case you're interested, what I'm trying to accomplish here is a circular view, but I don't like the way some people do it (by returning Integer.MAX_VALUE as a count and starting in the middle). I want to do it with a smaller size, and change the position in the gallery when reaching the upper or lower limits. But to do that seamlessly, I must do it when the above said animation stops.

    Any ideas, oh android masters? :)
     

    Advertisement

Share This Page

Loading...