Hi! I have a RelativeLayout that has 2 WebViews in it. This layout is animated using android.view.animation.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); I've tested the app on a Samsung Galaxy S 1 with android version 2.3.5 and works great even when a WebView has lots of content. On Samsung Galaxy S 2 with android version 4.0.3 the animation is not that great:sometimes the view just snaps to the target location with no smooth animation. This devices is more powerful than the S 1 device, shouldn't the animation be better on it? I've tried to use ObjectAnimator and the view doesn't snaps to the target position from time to time anymore, but now the animation is slower when a WebView from inside the layout has lots of content. Is there a solution for my problem? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en