0

I want a blink animation on a ImageView which is part of a ListView item. I.e. i have a simple LinearLayout with a ImageView on the left and a TextView on the right. Now have some of the Items a blinking ImageView and some not. I found this solution for a blink animation but i don't know if this solution is to much for the ui thread. My ListView can contains like 100 Items and for example 30 of them can have this blink animation.

Is there some best practice for ListView Items which contain animations? It would be really helpful if someone has a good idea or hint/note about this topic.

Community
  • 1
  • 1
Happo
  • 1,375
  • 3
  • 16
  • 34
  • Its good to use Alpha Animation for blinking. It will not take so much load in UI thread. Then after if it is necessary then you can use it in Handler. – Sagar Shah Feb 04 '14 at 21:39
  • Thank you. Any infos about view recycling during animation? – Happo Feb 04 '14 at 21:41
  • Why do you want to recycle views during animation. Your views can be recycle using ViewHolder class in getView() method of your custom adapter. – Sagar Shah Feb 04 '14 at 21:43
  • Sorry, what i mean is can a view be recycled if some animations run on it. I recognize in this moment, that the animation runs not on the list item and this means it can be recyled. Sorry for the confusion – Happo Feb 04 '14 at 21:46

0 Answers0