Animation on Views inside ListView rows, problem.

Problems with Canvas, OpenGL, etc...

Animation on Views inside ListView rows, problem.

Postby alexm » Sun Jul 04, 2010 12:01 pm

I have a ListView with 2 bits of information inside a TextView and an ImageView.

I want to update the image not the whole row (by fading the old image out and the new image in), this works fine as long as there is only 1 row in the ListView.

If I add another row in the ListView the animation no longer works.

Has anyone had something similar?
alexm
Junior Developer
Junior Developer
 
Posts: 14
Joined: Tue Jun 22, 2010 7:34 am

Top

Re: Animation on Views inside ListView rows, problem.

Postby alexm » Sun Jul 04, 2010 1:29 pm

I had class which contained View information in, when the ListView got regenerated it ended referencing an old object. Working fine now.
alexm
Junior Developer
Junior Developer
 
Posts: 14
Joined: Tue Jun 22, 2010 7:34 am

Re: Animation on Views inside ListView rows, problem.

Postby padde » Sun Jul 04, 2010 3:34 pm

Yep this is due to the view recycling to boost performance :)
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Top

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

Who is online

Users browsing this forum: No registered users and 2 guests