Hi everybody,

I'm having problems trying to start an animation on a custom View that
belongs to a custom ViewGroup. If i start the animation on the parent
ViewGroup using:

viewgroup.startAnimation(AnimationUtils.loadAnimation(this,
R.anim.fade));

it works fine and I can see the children views fading out, but if I
try to start the same animation directly on the children, nothing
happens, the onDraw method is not called.

I guess it might be related to the methods I've overrided in the
ViewGroup parent class, but I can't find the way out. The overrided
methods are:
- onLayout(): I'm overriding it but i do nothing there because I'm
positioning the views in a different manner.
- onSizeChanged()
- onMeasure()
- dispatchDraw(): Here i draw all the children using getChildAt(i).draw
(canvas);

Any idea of what can be the reason to this beahviour?.
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

Reply via email to