When an animation plays on a ListView which is placed on top of a VideoView 
in a RelativeLayout (this happens when the ListView is placed above some 
other view types as well, but not for example, ImageView), the ListView is 
not rendered entirely. If requestLayout() is called on the listview on 
animation completion, it then becomes completely visible. Here are two 
screenshots, the second one with requestLayout() called at animation 
completion:

http://imgur.com/a/b8TVa

Here's paste of code to see this oddness: http://gist.github.com/2934018 . 
If one removes the rotationY objectAnimator, the ListView displays 
correctly. Or if the VideoView is replaced with an ImageView, the animation 
with the rotationY objectAnimator displays correctly.

Another way to see this is to place the listview in the ListFlipper 
(layout/rotation_list.xml) sample in the API demos in a relative layout 
with a VideoView, both with match_parent/match_parent layout params.

I'm unsure if this is a bug or if I'm doing something wrong - if it's a 
bug, is there a workaround? I haven't tested this with any view type other 
than ListView. I get the same behaviour on a 4.0.3 device (Samsung 
GT-N7000) and the emulator.

cheers,
-- Richard

-- 
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