Hi! I'm trying to animate a RelativeLayout with 2 WebViews in it using TranslateAnimation like this:
MarginLayoutParams params = (MarginLayoutParams) m_view.getLayoutParams(); // create animation Animation translate = new TranslateAnimation(-1 * to + params.leftMargin, 0, 0, 0); translate.setDuration( 400 ); // update layout params.leftMargin = to; m_view.setLayoutParams(params); // start animation m_view.startAnimation(translate); The animation is nice and smooth on a Samsung Galaxy S1 with Android version 2.3.5, but on Samsung Galaxy S2 with Android version 4.0.3 the animation is not very nice, the animation just snaps to the target position from time to time. I also tried to use ObjectAnimator which is better, but if one of the WebViews has lots of content the animation is slower, but using TranslateAnimation on older device the animation doesn't lag at all when the WebViews have lots of content. Why the animation using TranslateAnimation is not as very good on a more powerful device? What solutions do I have? -- 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

