Looking for some design help. Imagine an android screen with a 200/300 blue panel in the middle of the canvas. You swipe, and a green panel slides in to takes its place. You can do that in either directions and it will alternate green/blue, etc, forever.
I got it working where the main file called a view class which creates the three panels, and then listens for on touch events. Each of the panels is a view class, with some attributes. I've got it so you can drag panels left or right and everything happens as you would expect, except there is no animation, the next panel just pops into place, and the one you were dragging pops off screen. You can do this forever, as I've got new panels replacing old ones to the left and right, etc. ( i.e. if you swipe to the right, and cover about half the screen, everything shifts. if you do it again it does it again, and on and on.). When I tried to animate, instead of popping, it just doesn't work. I can't seem to call an animation on a view object, even though you are supposed to be able to. I looked at the ApiDemos included in the SDK, and they throw around that beach picture, using a Drawable. However, a Drawable isn't able to tell me its current x pos, as far as I can tell. So I'm stepping back and thinking, should I perhaps be using button for each panel in the first place? Or should I stick with my first method, as the View object should be able to animate, or should I be using a Drawable? Sorry if this is a broad and open question, but some overall design input will at least get me going in the right direction, thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

