User input for changing duration in animation list

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

User input for changing duration in animation list

Postby Iceman2 » Sat May 02, 2009 10:19 pm

I need to be able to change the duration based on user input. Think bicycle wheel starts at a certain speed but slows down or speeds up based on user input. I'm new to Android and limited Java. So if some one could give me a code sample of how to do this, it would be appreciated.

Also, it would be great if I could re-set the duration for each individual frame but at this point if I can only re-set the duration for the entire list, that would be ok.

Below is the xml file.

<animation-list xmlns:android=""
<item android:drawable="@drawable/wheel1" android:duration="200" />
<item android:drawable="@drawable/wheel2" android:duration="200" />
<item android:drawable="@drawable/wheel3" android:duration="200" />
<item android:drawable="@drawable/wheel4" android:duration="200" />
Posts: 3
Joined: Sat May 02, 2009 9:36 pm


Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests