I had a similar issue and managed to solve it. I'm still not really sure what's the reason behind this problem, but it's lying somewhere around the content of the view and the way gingerbread handles its drawing.
In my case I had a RelativeLayout
which had some views in it. The animation would work only if I changed some value of a child view in my RelativeLayout before calling the animation. For example, I had a TextView
inside, so I would call the setText()
method. Maybe you should try it too:
// ---
mQuickReturnView.setAnimation(toTopAnimation);
someViewInsidemQuickReturnView.setText(getResources().getString(R.string.some_string));
mQuickReturnView.startAnimation(toTopAnimation);
// ---
The setText()
method updates the view in some way and the animation works fine after that.