showing animated ImageViews

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

showing animated ImageViews

Postby rafiq_nayan@yahoo.com » Tue Feb 23, 2010 8:30 am

Hi, I'm new in android.
I want to show some images each of which are 20x20 px.

these images are shown in some rows and columns. total rows and column numbers may be from 1 to 10. these may be like this

:) :) :) :)
:) :) :) :)
:) :) :) :)
:) :) :) :)

or
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)

user will fix what size of matrix he want to see.

Now i want that when these images (tennis balls) will be shown, it will seem that they are dropping from the top at different velocities. after dropping on the baseline, they will bounce and return to their desired position and form the matrix.
how can i do this? please give me some suggestion.
rafiq_nayan@yahoo.com
Freshman
Freshman
 
Posts: 2
Joined: Thu Nov 12, 2009 5:48 am

Top

Re: showing animated ImageViews

Postby pmws » Tue Feb 23, 2010 10:38 am

rafiq_nayan@yahoo.com wrote:Hi, I'm new in android.
I want to show some images each of which are 20x20 px.

these images are shown in some rows and columns. total rows and column numbers may be from 1 to 10. these may be like this

:) :) :) :)
:) :) :) :)
:) :) :) :)
:) :) :) :)

or
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)
:) :) :) :) :) :) :)

user will fix what size of matrix he want to see.

Now i want that when these images (tennis balls) will be shown, it will seem that they are dropping from the top at different velocities. after dropping on the baseline, they will bounce and return to their desired position and form the matrix.
how can i do this? please give me some suggestion.


Hard to explain.
A very good 2D Graphics tutorial can be fond here.
http://www.droidnova.com/playing-with-g ... i,147.html

This should teach you anything you need to create this animation.
pmws
Developer
Developer
 
Posts: 37
Joined: Thu Sep 24, 2009 12:23 pm

Postby rafiq_nayan@yahoo.com » Thu Feb 25, 2010 4:34 pm

Thank you for your suggestion. isn't there any way without using physics engine? is it possible to set the path of a view (i.e ImageView) and create animation so that it will move along the desired path?
rafiq_nayan@yahoo.com
Freshman
Freshman
 
Posts: 2
Joined: Thu Nov 12, 2009 5:48 am

Top

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

Who is online

Users browsing this forum: No registered users and 5 guests