Yes, ViewFlipper can flip on its own. When you call setFlipInterval (int timeInMs) and then call startFlipping() the flipper will switch the views every timeInMs millisecs. I can handle the flips that I trigger manually, but I want to also handle them when they are automatic. There is the possibility of using a Timer object and scheduling a TimerTask to run every timeInMs, but this does not provide accuracy. i.e. I do not have a guarantee that the timing is synchronized, so I cannot achieve the goal of performing an action just before showing the next view. I was just wondering if there is a better way to do this.
Thanks for your response. On Nov 20, 7:30 pm, loty <[EMAIL PROTECTED]> wrote: > I don't understand it - you tell ViewFlipper to flip views, it doesn't > flip anything on it's own. So why can't you keep track of your views > in the event handler that initiates your flips? > > On Nov 20, 4:38 am, Ngewi <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > I am using the ViewFlipper class with automatic flipping through > > views. Is there a way to get notified or register a listener to be > > called each time just before a new child view is displayed. (i.e with > > automatic flipping ). So far I have not seen any listeners in the > > documentation for this purpose. > > > I would also like to use this to check, each time a view is loaded, if > > it is the last and return to the calling activity instead wrapping > > around to start from the beginning of the ViewFlipper child views. > > > If someone has any bright ideas please share. > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---